+Changes with Apache 1.1.3:
+
+ *) Fix a problem introduced by the directory index patch that
+ breaks CGI with PATH_INFO arguments.
+
+ *) Remove const in storage type declaration for make_cookie().
+
Changes with Apache 1.1.2:
*) Fix a buffer overflow problem in mod_cookies. Without these
*cp = '\0';
return OK;
}
-#if defined(ENOENT)
- else if (errno == ENOENT) {
+#if defined(ENOENT) && defined(ENOTDIR)
+ else if (errno == ENOENT || errno == ENOTDIR) {
#else
- #error Your system apparently does not define ENOENT.
+ #error Your system apparently does not define ENOENT || ENOTDIR.
#error Removal of these lines opens a security hole if protecting
#error from directory indexes with DirectoryIndex.
else {
while (cp > path && cp[-1] == '/')
--cp;
}
-#if defined(ENOENT)
+#if defined(ENOENT) && defined(ENOTDIR)
else {
- log_printf(r->server, "access to %s failed for client; unable to determine if index file exists (stat() returned unexpected error)", r->filename);
+ log_printf(r->server, "access to %s failed for client; unable to determine if index file exists (stat() returned unexpected error[%d])", r->filename, errno);
return FORBIDDEN;
}
#endif
struct timeval tv;
char new_cookie[1024]; /* blurgh */
char *dot;
- const char *rname = pstrdup(r->pool,
+ char *rname = pstrdup(r->pool,
get_remote_host(r->connection, r->per_dir_config,
REMOTE_NAME));