mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
d04f51d7aa
commit
448b62767d
2 changed files with 12 additions and 0 deletions
|
@ -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]))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue