aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gnustep-base
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-04-29 10:56:58 +0800
committerdinoex <dinoex@FreeBSD.org>2004-04-29 10:56:58 +0800
commit1d5b609fc45e58fc1f1afd2d329350df8cf9dd65 (patch)
treea47d893d23e7605074d98e32f49cfb65728d8d7d /lang/gnustep-base
parent50150a0c2d0a06c945a76d025bc37b582a86538d (diff)
downloadfreebsd-ports-gnome-1d5b609fc45e58fc1f1afd2d329350df8cf9dd65.tar.gz
freebsd-ports-gnome-1d5b609fc45e58fc1f1afd2d329350df8cf9dd65.tar.zst
freebsd-ports-gnome-1d5b609fc45e58fc1f1afd2d329350df8cf9dd65.zip
- patch to fix coredumps in make_services
Diffstat (limited to 'lang/gnustep-base')
-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)