You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Bemny Pollak <be...@alben.com> on 1997/12/03 16:43:51 UTC

general/1508: Fully qualified path for passwd, documentroot and alias

>Number:         1508
>Category:       general
>Synopsis:       Fully qualified path for passwd, documentroot and alias
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Dec  3 07:50:00 PST 1997
>Last-Modified:
>Originator:     benny@alben.com
>Organization:
apache
>Release:        1.3b3
>Environment:
win32 - all
>Description:
Fully qualified path (i.e. D:\mypath\apache) for passwd, documentroot and alias
>How-To-Repeat:

>Fix:
in http_config.c: set_file slot, change the line:
    if (*arg == '/')
to:
    if (*arg == '/' || arg[1] == ':')
In util.c: chdir_file, add the line:
    if (x == NULL) x = strrchr(file, '\\');
after the line:
    x = strrchr(file, '/');
and the line:
{ char *cp ;for (cp = buf; *cp; cp++) if (*cp == '/') *cp = '\\'; }
after the line:
 buf[x - file] = '\0';

It works for me...
Thanks
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]