httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgi.c
Date Wed, 27 Dec 2000 23:30:07 GMT
rbb         00/12/27 15:30:07

  Modified:    modules/generators mod_cgi.c
  Log:
  On Unix, we do not want to use an absolute path for CGI scripts.  SuEXEC
  will not let us use one, and when not using SuEXEC, we chdir() into the
  correct directory.
  
  Revision  Changes    Path
  1.74      +7 -7      httpd-2.0/modules/generators/mod_cgi.c
  
  Index: mod_cgi.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgi.c,v
  retrieving revision 1.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- mod_cgi.c	2000/12/15 15:02:38	1.73
  +++ mod_cgi.c	2000/12/27 23:30:07	1.74
  @@ -492,7 +492,7 @@
           *cmd = apr_pstrcat(p, quoted_filename, NULL);
       }
   #else
  -    *cmd = apr_pstrcat(p, r->filename, NULL);
  +    *cmd = argv0;
   #endif
       return APR_SUCCESS;
   }
  @@ -579,15 +579,15 @@
   
       /* build the command line */
       if (build_command_line(&command, r, p) != APR_SUCCESS) {
  -        ap_log_rerror(APLOG_MARK, APLOG_ERR, errno, r,
  -                      "couldn't spawn child process: %s", r->filename);
  -        return HTTP_INTERNAL_SERVER_ERROR;
  +	ap_log_rerror(APLOG_MARK, APLOG_ERR, errno, r,
  +	      "couldn't spawn child process: %s", r->filename);
  +	return HTTP_INTERNAL_SERVER_ERROR;
       }
       /* build the argument list */
       else if (build_argv_list(&argv, r, p) != APR_SUCCESS) {
  -        ap_log_rerror(APLOG_MARK, APLOG_ERR, errno, r,
  -                      "couldn't spawn child process: %s", r->filename);
  -        return HTTP_INTERNAL_SERVER_ERROR;
  +	ap_log_rerror(APLOG_MARK, APLOG_ERR, errno, r,
  +		      "couldn't spawn child process: %s", r->filename);
  +	return HTTP_INTERNAL_SERVER_ERROR;
       }
       argv[0] = apr_pstrdup(p, command);
   
  
  
  

Mime
View raw message