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:
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);
*/
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);
}
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);
}