Check Library directory before checking and attempting to create Services subdir

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36166 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2013-02-19 13:31:46 +00:00
parent 941afdac86
commit b263e0d435
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-02-18 Riccardo Mottola <rm@gnu.org>
* Tools/make_services.m (main)
Check Library directory before checking and attempting to create Services subdir
2013-02-18 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSDragView.m

View file

@ -2,7 +2,7 @@
NeXTstep/ OPENSTEP 'make_services' tool. In addition it builds a list of
applications and services-bundles found in the standard directories.
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998-2013 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
Created: November 1998
@ -197,6 +197,13 @@ main(int argc, char** argv, char **env_c)
*/
usrRoot = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
NSUserDomainMask, YES) lastObject];
if (CheckDirectory(usrRoot) == NO)
{
if (verbose > 0)
NSLog(@"couldn't create %@", usrRoot);
[pool drain];
exit(EXIT_FAILURE);
}
usrRoot = [usrRoot stringByAppendingPathComponent: @"Services"];
if (CheckDirectory(usrRoot) == NO)
{