summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/gnustep-base/Makefile3
-rw-r--r--lang/gnustep-base/files/patch-NSFileManager.m28
2 files changed, 30 insertions, 1 deletions
diff --git a/lang/gnustep-base/Makefile b/lang/gnustep-base/Makefile
index b71762f6c1a6..3a53a2618306 100644
--- a/lang/gnustep-base/Makefile
+++ b/lang/gnustep-base/Makefile
@@ -8,9 +8,10 @@
PORTNAME= gnustep-base
.if defined(WITH_GNUSTEP_DEVEL)
PORTVERSION= 1.9.1
+PORTREVISION= 1
.else
PORTVERSION= 1.8.0
-PORTREVISION= 1
+PORTREVISION= 2
.endif
CATEGORIES= lang devel
MASTER_SITES= ${MASTER_SITE_GNUSTEP}
diff --git a/lang/gnustep-base/files/patch-NSFileManager.m b/lang/gnustep-base/files/patch-NSFileManager.m
new file mode 100644
index 000000000000..1325f4466629
--- /dev/null
+++ b/lang/gnustep-base/files/patch-NSFileManager.m
@@ -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)