diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2004-06-16 16:36:40 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2004-06-16 16:36:40 +0000 |
commit | aa3074a4923c62bae4920655bd0df7176e8339cc (patch) | |
tree | 434ffdfb8d533cdd4b139c25694102f637d2812b /lang/gnustep-base/files/NSFileManager.m.patch | |
parent | Unbreak embedded mode. (diff) |
- update to 1.9.2
Diffstat (limited to 'lang/gnustep-base/files/NSFileManager.m.patch')
-rw-r--r-- | lang/gnustep-base/files/NSFileManager.m.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lang/gnustep-base/files/NSFileManager.m.patch b/lang/gnustep-base/files/NSFileManager.m.patch new file mode 100644 index 000000000000..1325f4466629 --- /dev/null +++ b/lang/gnustep-base/files/NSFileManager.m.patch @@ -0,0 +1,28 @@ +--- Source/NSFileManager.m.orig Thu Oct 9 11:31:35 2003 ++++ Source/NSFileManager.m Sat Apr 24 07:39:43 2004 +@@ -589,6 +589,12 @@ + int len, cur; + NSDictionary *needChown = nil; + ++ if (path == nil) // don't try to do anything when path is nil ++ { ++ ASSIGN(_lastError, @"Could not create directory - name is nil"); ++ return NO; ++ } ++ + /* + * If there is no file owner specified, and we are running setuid to + * root, then we assume we need to change ownership to correct user. +@@ -682,6 +688,12 @@ + while (cur < len); + + #endif /* !MINGW */ ++ ++ // dont change when we have no attibutes ++ if (attributes == nil) ++ { ++ return YES; ++ } + + // change attributes of last directory + if ([attributes count] == 0) |