Unix, and this was the bug that Jeff's (none the less correct) fix masked.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90601
13f79535-47bb-0310-9956-
ffa450edef68
AP_DECLARE(int) ap_os_is_path_absolute(apr_pool_t *p, const char *dir)
{
const char *newpath;
+ const char *ourdir = dir;
if (apr_filepath_root(&newpath, &dir, 0, p) != APR_SUCCESS
- || strncmp(newpath, dir, strlen(newpath)) != 0) {
+ || strncmp(newpath, ourdir, strlen(newpath)) != 0) {
return 0;
}
return 1;