mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Startup fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11267 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bb260d1561
commit
0d5a16e769
3 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2001-10-28 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSFileManager.m (_attributesAtPath:traverseLink:forCopy:):
|
||||
Make NSLog message into fprintf to avoid recursion.
|
||||
|
||||
* Source/NSUserDefaults.m (pathForUser): Create ~/GNUstep/Library
|
||||
if it doesn't exist.
|
||||
|
||||
2001-10-26 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* configure (z): Check for gzseek in zlib since older zlibs don't
|
||||
|
|
|
@ -2079,7 +2079,8 @@ static int sparc_warn = 0;
|
|||
if (sparc_warn == 0)
|
||||
{
|
||||
sparc_warn = 1;
|
||||
NSLog(@"WARNING (NSFileManager): Disabling group enums (setgrent, etc) since this crashes gdb on sparc machines");
|
||||
/* Can't be NSLog - causes recursion in [NSUser -synchronize] */
|
||||
fprintf(stderr, "WARNING (NSFileManager): Disabling group enums (setgrent, etc) since this crashes gdb on sparc machines");
|
||||
}
|
||||
#endif
|
||||
values[9] = @"UnknownGroup";
|
||||
|
|
|
@ -435,6 +435,7 @@ static NSString *pathForUser(NSString *user)
|
|||
NSFileManager *mgr = [NSFileManager defaultManager];
|
||||
NSString *home;
|
||||
NSString *path;
|
||||
NSString *libpath;
|
||||
BOOL isDir;
|
||||
|
||||
home = NSHomeDirectoryForUser(user);
|
||||
|
@ -461,6 +462,10 @@ static NSString *pathForUser(NSString *user)
|
|||
NSLog(@"ERROR - '%@' is not a directory!", path);
|
||||
return nil;
|
||||
}
|
||||
/* Create this path also. The GUI/font cache depends on it being there */
|
||||
libpath = [path stringByAppendingPathComponent: @"Library"];
|
||||
if ([mgr fileExistsAtPath: libpath isDirectory: &isDir] == NO)
|
||||
[mgr createDirectoryAtPath: libpath attributes: nil];
|
||||
path = [path stringByAppendingPathComponent: GNU_UserDefaultsDatabase];
|
||||
return path;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue