diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2004-04-29 02:56:58 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2004-04-29 02:56:58 +0000 |
commit | e63ab851d0f575a89b54b49eff47ed61ed026396 (patch) | |
tree | 2199e485a15a2653981d4f1737e2fe3c85344884 /lang/gnustep-base | |
parent | 040a4df274bedd63ff4d30b2f11a47cb9fb25929 (diff) |
Notes
Diffstat (limited to 'lang/gnustep-base')
-rw-r--r-- | lang/gnustep-base/Makefile | 3 | ||||
-rw-r--r-- | lang/gnustep-base/files/patch-NSFileManager.m | 28 |
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) |