]> git.pld-linux.org Git - packages/gnustep-gui.git/commitdiff
- kill annoying SEGV when user doesn't have ~/GNUstep directory
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 29 Dec 2003 15:30:48 +0000 (15:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gnustep-gui-segv.patch -> 1.1

gnustep-gui-segv.patch [new file with mode: 0644]

diff --git a/gnustep-gui-segv.patch b/gnustep-gui-segv.patch
new file mode 100644 (file)
index 0000000..c4ac0b5
--- /dev/null
@@ -0,0 +1,15 @@
+--- gnustep-gui-0.9.1/Tools/make_services.m.orig       2003-10-10 05:55:11.000000000 +0200
++++ gnustep-gui-0.9.1/Tools/make_services.m    2003-12-29 16:08:38.987141624 +0100
+@@ -199,6 +199,12 @@
+   usrRoot = [NSSearchPathForDirectoriesInDomains(NSUserDirectory,
+     NSUserDomainMask, YES) lastObject];
++  /* don't SEGV if ~/GNUstep doesn't exist */
++  if(usrRoot == nil)
++    {
++      exit(EXIT_FAILURE);
++    }
++
+   mgr = [NSFileManager defaultManager];
+   if (([mgr fileExistsAtPath: usrRoot isDirectory: &isDir] && isDir) == 0)
+     {
This page took 0.101028 seconds and 4 git commands to generate.