Commit 74c5d106 authored by dgaudet's avatar dgaudet
Browse files

give me useless text not useless errno

Reviewed by:	Dean, Alexei
Submitted by:	Marc
Obtained from:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78389 13f79535-47bb-0310-9956-ffa450edef68
parent 5cf478ff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Changes with Apache 1.2.1
  
  *) Improved unix error response logging.  [Marc Slemko]

  *) Update mod_rewrite from 3.0.5 to 3.0.6.  New ruleflag
     QSA=query_string_append.  Also fixed a nasty bug in per-dir context:
     when a URL http://... was used in concunction with a special
+4 −1
Original line number Diff line number Diff line
@@ -502,7 +502,10 @@ void call_exec (request_rec *r, char *argv0, char **env, int shellcmd)
        program = fopen (r->filename, "r");
        if (!program) {
            char err_string[HUGE_STRING_LEN];
            ap_snprintf(err_string, sizeof(err_string), "open of %s failed, errno is %d\n", r->filename, errno);
            ap_snprintf(err_string, sizeof(err_string), 
		 "open of %s failed, reason: fopen: %s (errno = %d)\n", 
		 r->filename, strerror(errno), errno);

            /* write(2, err_string, strlen(err_string)); */
            /* exit(0); */
            log_unixerr("fopen", NULL, err_string, r->server);
+2 −1
Original line number Diff line number Diff line
@@ -333,7 +333,8 @@ void cgi_child (void *child_stuff)
     */
    
    ap_snprintf(err_string, sizeof(err_string),
	    "exec of %s failed, errno is %d\n", r->filename, errno);
	    "exec of %s failed, reason: %s (errno = %d)\n", 
            r->filename, strerror(errno), errno);
    write(2, err_string, strlen(err_string));
    exit(0);
}
+2 −2
Original line number Diff line number Diff line
@@ -646,8 +646,8 @@ void include_cmd_child (void *arg)
    fprintf (dbg, "Exec failed\n");
#endif    
    ap_snprintf(err_string, sizeof(err_string),
	"httpd: exec of %s failed, errno is %d\n",
	SHELL_PATH,errno);
	"httpd: exec of %s failed, reason: %s (errno = %d)\n",
	SHELL_PATH, strerror(errno), errno);
    write (2, err_string, strlen(err_string));
    exit(0);
}