Fix error handling UNC path

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28145 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-03-29 07:32:11 +00:00
parent 39ad1c53d8
commit cfd9c1205f
3 changed files with 32 additions and 19 deletions

View file

@ -351,7 +351,6 @@ pathSepString()
* 'C:/' absolute root for a drive on windows
* 'C:' if entire path is 'C:' or 'C:relativepath'
* '//host/share/' absolute root for a host and share on windows
* '//host/share' if entire path is '//host/share'
* '~/' home directory for user
* '~' if entire path is '~'
* '~username/' home directory for user
@ -440,13 +439,12 @@ static unsigned rootOf(NSString *s, unsigned l)
*/
if (range.location > pos)
{
/* OK ... we have the '//host/share/'
* format, so this is a valid UNC path.
*/
root = NSMaxRange(range);
}
}
else
{
root = l;
}
}
}
}