Skip to content

fix: add large file support defines to fileio.c and persistence.c - #2947

Open
sithglan wants to merge 1 commit into
allinurl:masterfrom
sithglan:master
Open

fix: add large file support defines to fileio.c and persistence.c#2947
sithglan wants to merge 1 commit into
allinurl:masterfrom
sithglan:master

Conversation

@sithglan

Copy link
Copy Markdown

Without _FILE_OFFSET_BITS=64 and related LFS defines, fopen() and stat() fail with EOVERFLOW on 32-bit systems when opening log files larger than 2GB. Every other source file in the project already defines these macros.

The issue we had on 32 bit Debian Trixie:
Unable to open the specified log file '/var/log/nginx/access.log.1'. Value too large for defined data type

@allinurl

allinurl commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Thanks for the PR. Could you please rebase this on the latest master and push again?

Without _FILE_OFFSET_BITS=64 and related LFS defines, fopen() and stat()
fail with EOVERFLOW on 32-bit systems when opening log files larger than
2GB. Every other source file in the project already defines these macros.
@sithglan

sithglan commented Jun 3, 2026 via email

Copy link
Copy Markdown
Author

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