You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1998/04/27 12:44:37 UTC

get_path_info() bug

code snippet: 

#if defined(EACCES)
            if (errno != EACCES)
#endif
                ap_log_error(APLOG_MARK, APLOG_ERR, r->server,
                            "access to %s failed for %s", r->uri,
                            ap_get_remote_host(r->connection, r->per_dir_config,
                                            REMOTE_NOLOOKUP));

notice that ap_get_remote_host will totally trash errno, so it'll be total
garbage when ap_log_error finally gets its chance to read errno.  Could be
fixed with %pA. 

Dean