From 866ca7ae392f77b578ee3ebed55971c32da6f7d7 Mon Sep 17 00:00:00 2001 From: CaS Date: Thu, 31 Mar 2005 08:10:24 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ Source/NSString.m | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 674b2098c..7c0e6b286 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-03-31 Richard Frith-Macdonald + + * 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 * config/pathxml.m4: Fix to get --with-xml-prefix= to work for diff --git a/Source/NSString.m b/Source/NSString.m index 747748f32..8b5d812b1 100644 --- a/Source/NSString.m +++ b/Source/NSString.m @@ -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])) {