Treat relative UNC path as absolute on unix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21021 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-03-31 08:10:24 +00:00
parent d04f51d7aa
commit 448b62767d
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-03-31 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSString.m: (isAbsolutePath) always treat a path beginning
with '/' as absolute except when in windows mode or on windows and
not in unix mode.
2005-03-23 Richard Frith-Macdonald <rfm@gnu.org>
* config/pathxml.m4: Fix to get --with-xml-prefix= to work for

View file

@ -4412,6 +4412,12 @@ static NSFileManager *fm = nil;
{
return YES; // Begins with tilde ... absolute
}
#if !defined(__MINGW__)
if (c == '/' && GSPathHandlingWindows() == NO)
{
return YES; // Begins with slash ... absolute on unix.
}
#endif
root = rootOf(self, l);
if (root > 0 && pathSepMember([self characterAtIndex: root-1]))
{