httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject [PATCH] CGI: script command line and win32
Date Thu, 08 Jan 1998 03:53:55 GMT
http://host/cgi-bin/mycgi?foobar

currently fails on win32.  The below patch fixes it.  It would probably be
more correct to change the three suexec args to be defined as simply
adding something before the passed args if non-NULL.

Index: util_script.c
===================================================================
RCS file: /export/home/cvs/apachen/src/main/util_script.c,v
retrieving revision 1.88
diff -u -r1.88 util_script.c
--- util_script.c	1998/01/07 16:46:24	1.88
+++ util_script.c	1998/01/08 03:50:21
@@ -80,6 +80,11 @@
  * group are the first three arguments to be passed; if not, all three
  * must be NULL.  The query info is split into separate arguments, where
  * "+" is the separator between keyword arguments.
+ *
+ * XXXX: note that the WIN32 code uses one of the suexec strings 
+ * to pass an interpreter name.  Remember this if changing the way they
+ * are handled in create_argv.
+ *
  */
 static char **create_argv(pool *p, char *path, char *user, char *group,
 			  char *av0, const char *args)
@@ -756,7 +761,7 @@
 	    }
 	    else if (is_script) {
 		pid = spawnve(_P_NOWAIT, interpreter + 2,
-			      create_argv(r->pool, NULL, NULL, NULL,
+			      create_argv(r->pool, interpreter + 2, NULL, NULL,
 					  r->filename, r->args), env);
 	    }
 	    else {



Mime
View raw message