bjh 99/10/19 08:52:25
Modified: src/main http_log.c Log: Need APR_CREATE flag when opening error log & pid file. Revision Changes Path 1.12 +2 -2 apache-2.0/src/main/http_log.c Index: http_log.c =================================================================== RCS file: /home/cvs/apache-2.0/src/main/http_log.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- http_log.c 1999/10/14 14:36:37 1.11 +++ http_log.c 1999/10/19 15:52:24 1.12 @@ -261,7 +261,7 @@ fname = ap_server_root_relative(p, s->error_fname); /* Change to AP funcs. */ if (ap_open(&s->error_log, fname, APR_BUFFERED | APR_APPEND | - APR_READ | APR_WRITE, APR_OS_DEFAULT, p) != APR_SUCCESS) { + APR_READ | APR_WRITE | APR_CREATE, APR_OS_DEFAULT, p) != APR_SUCCESS) { perror("fopen"); fprintf(stderr, "%s: could not open error log file %s.\n", ap_server_argv0, fname); @@ -554,7 +554,7 @@ ); } - if(ap_open(&pid_file, fname, APR_WRITE | APR_BUFFERED, APR_OS_DEFAULT, p) != APR_SUCCESS) { + if(ap_open(&pid_file, fname, APR_WRITE | APR_BUFFERED | APR_CREATE, APR_OS_DEFAULT, p) != APR_SUCCESS) { perror("fopen"); fprintf(stderr, "%s: could not log pid to file %s\n", ap_server_argv0, fname);