bjh 99/09/18 03:57:08
Modified: src/main util.c
Log:
Configuration files are text files so open them in text mode.
Some OS/2 (and probably DOS & Windows) text editors like to put Ctrl-Z EOF
markers at the end of the files they edit. Opening the config files in text
mode prevents the Ctrl-Z from causing 'Invalid command' errors when starting.
PR: 4632
Revision Changes Path
1.172 +1 -1 apache-1.3/src/main/util.c
Index: util.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/util.c,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -r1.171 -r1.172
--- util.c 1999/08/14 08:35:50 1.171
+++ util.c 1999/09/18 10:57:07 1.172
@@ -807,7 +807,7 @@
return NULL;
}
- file = ap_pfopen(p, name, "r");
+ file = ap_pfopen(p, name, "rt");
#ifdef DEBUG
saved_errno = errno;
ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, NULL,
|