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:
Stefan Fritsch
2010-08-22 10:34:20 +00:00
parent 58570af105
commit 381673cdbf
3 changed files with 8 additions and 1 deletions

View File

@ -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);