Skip to content

Issue 827, handle large file rotation#2201

Merged
atomicturtle merged 1 commit into
ossec:mainfrom
atomicturtle:issue827
Mar 22, 2026
Merged

Issue 827, handle large file rotation#2201
atomicturtle merged 1 commit into
ossec:mainfrom
atomicturtle:issue827

Conversation

@atomicturtle

Copy link
Copy Markdown
Member

Closes issue #827

Signed-off-by: Scott R. Shinn <scott@atomicorp.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #827 by enabling large-file support across the build so that components like ossec-monitord can handle/compress log archives larger than 2–4GB correctly on 32-bit/off_t-limited environments.

Changes:

  • Enable 64-bit file offsets at compile time via _FILE_OFFSET_BITS=64 and _LARGEFILE64_SOURCE in the main build defines.
  • Standardize crypto module includes to use headers/shared.h, ensuring consistent feature macros and common headers are applied early.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/os_crypto/sha1/sha1_op.c Switches to headers/shared.h to centralize/standardize large-file and common includes.
src/os_crypto/md5/md5_op.c Switches to headers/shared.h for consistent common headers and macros.
src/os_crypto/md5_sha1/md5_sha1_op.c Switches to headers/shared.h to align with shared large-file/common-header setup.
src/Makefile Adds large-file feature macros (_FILE_OFFSET_BITS=64, _LARGEFILE64_SOURCE) to global build defines.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@atomicturtle atomicturtle merged commit a386a49 into ossec:main Mar 22, 2026
9 checks passed
@atomicturtle atomicturtle deleted the issue827 branch April 11, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants