mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Tolerate users without home directories etc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
43ba34ba4c
commit
858255dd23
2 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-06-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSUserDefaults.m: ([initForUser:]) carry on and initialise
|
||||||
|
an instance even if the users defaults directory doesn't exist and
|
||||||
|
can't be created. Created instance is read only and a warning is
|
||||||
|
issued.
|
||||||
|
|
||||||
2004-06-18 Adam Fedor <fedor@gnu.org>
|
2004-06-18 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Tools/gdomap.c (xgethostname): Add missing colon (patch
|
* Tools/gdomap.c (xgethostname): Add missing colon (patch
|
||||||
|
|
|
@ -779,11 +779,6 @@ static NSString *pathForUser(NSString *user)
|
||||||
{
|
{
|
||||||
NSString *path = pathForUser(userName);
|
NSString *path = pathForUser(userName);
|
||||||
|
|
||||||
if (path == nil)
|
|
||||||
{
|
|
||||||
RELEASE(self);
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
return [self initWithContentsOfFile: path];
|
return [self initWithContentsOfFile: path];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue