www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Hoyle <...@netfusion.co.uk>
Subject os-windows/2038: Supplied version does not support UNC pathnames
Date Mon, 06 Apr 1998 16:37:05 GMT

>Number:         2038
>Category:       os-windows
>Synopsis:       Supplied version does not support UNC pathnames
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Mon Apr  6 09:40:00 PDT 1998
>Last-Modified:
>Originator:     tmh@netfusion.co.uk
>Organization:
apache
>Release:        1.3b5
>Environment:
WinNT 4.0, VC5
>Description:
There is a bug in sub_canonical_filename in that it cannot cope with
pathnames which begin with '\\' being passed to it.

>How-To-Repeat:
Set the UserDir to //foo/bar/*/public_html and attempt to access a
~ directory.
>Fix:
At line 30 of util_win32.c: 

   if (szFilePart < buf+3) {
        strcpy(szCanon, buf);
// New stuff
	if(szCanon[0]=='\\' && szCanon[1]=='\\')
		szCanon[0]=szCanon[1]='/'; 
	else
// End new stuff
		szCanon[2] = '/';
        return;
    }
%0
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message