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

@ -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]))
{