stoddard 99/08/31 08:01:47
Modified: src/main http_main.c
Log:
Quote all arguments on call to CreateProcess(). Problem reported on news
group.
Revision Changes Path
1.472 +1 -1 apache-1.3/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -r1.471 -r1.472
--- http_main.c 1999/08/10 13:54:48 1.471
+++ http_main.c 1999/08/31 15:01:45 1.472
@@ -5815,7 +5815,7 @@
pCommand = ap_psprintf(p, "\"%s\" -Z %s -f \"%s\"", buf,
exit_event_name, ap_server_confname);
for (i = 1; i < argc; i++) {
- pCommand = ap_pstrcat(p, pCommand, " ", argv[i], NULL);
+ pCommand = ap_psprintf(p, "%s \"%s\"",pCommand, argv[i]);
}
/* Create a pipe to send socket info to the child */