mirror of
https://github.com/apache/httpd.git
synced 2025-08-15 23:27:39 +00:00
Support large log files in suexec
PR: 45856 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@987861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -131,7 +131,11 @@ static void err_output(int is_error, const char *fmt, va_list ap)
|
||||
struct tm *lt;
|
||||
|
||||
if (!log) {
|
||||
#if defined(_LARGEFILE64_SOURCE) && HAVE_FOPEN64
|
||||
if ((log = fopen64(AP_LOG_EXEC, "a")) == NULL) {
|
||||
#else
|
||||
if ((log = fopen(AP_LOG_EXEC, "a")) == NULL) {
|
||||
#endif
|
||||
fprintf(stderr, "suexec failure: could not open log file\n");
|
||||
perror("fopen");
|
||||
exit(1);
|
||||
|
Reference in New Issue
Block a user