mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
02087f75cc
commit
866ca7ae39
2 changed files with 12 additions and 0 deletions
|
@ -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>
|
2005-03-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* config/pathxml.m4: Fix to get --with-xml-prefix= to work for
|
* config/pathxml.m4: Fix to get --with-xml-prefix= to work for
|
||||||
|
|
|
@ -4412,6 +4412,12 @@ static NSFileManager *fm = nil;
|
||||||
{
|
{
|
||||||
return YES; // Begins with tilde ... absolute
|
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);
|
root = rootOf(self, l);
|
||||||
if (root > 0 && pathSepMember([self characterAtIndex: root-1]))
|
if (root > 0 && pathSepMember([self characterAtIndex: root-1]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue