www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David MacKenzie <...@pix.net>
Subject mod_cgi/9670: doesn't compile with DEBUG_CGI defined
Date Thu, 31 Jan 2002 22:56:52 GMT

>Number:         9670
>Category:       mod_cgi
>Synopsis:       doesn't compile with DEBUG_CGI defined
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Jan 31 15:00:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     djm@pix.net
>Release:        2.0.28 and CVS
>Organization:
apache
>Environment:
Unix
>Description:
mod_cgi.c: In function `run_cgi_child':
mod_cgi.c:408: `cld' undeclared (first use in this function)
mod_cgi.c:408: (Each undeclared identifier is reported only once
mod_cgi.c:408: for each function it appears in.)
mod_cgi.c:408: `argv0' undeclared (first use in this function)
>How-To-Repeat:
Add #define DEBUG_CGI 1 to the top of modules/generators/mod_cgi.c
and make.
>Fix:
--- mod_cgi.c   2002/01/31 21:38:18     1.1
+++ mod_cgi.c   2002/01/31 22:55:04
@@ -398,8 +399,8 @@

     RAISE_SIGSTOP(CGI_CHILD);
 #ifdef DEBUG_CGI
-    fprintf(dbg, "Attempting to exec %s as %sCGI child (argv0 = %s)\n",
-           r->filename, cld->nph ? "NPH " : "", argv0);
+    fprintf(dbg, "Attempting to exec %s as CGI child (argv0 = %s)\n",
+           r->filename, argv[0]);
 #endif

     if (e_info->prog_type == RUN_AS_CGI) {
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message