mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Check for unreadable defaults database.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19035 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b005bcf6ba
commit
140f78f6b8
1 changed files with 9 additions and 2 deletions
|
@ -1440,8 +1440,15 @@ static BOOL isPlistObject(id o)
|
|||
}
|
||||
else
|
||||
{
|
||||
newDict = [[NSMutableDictionaryClass allocWithZone: [self zone]]
|
||||
initWithContentsOfFile: _defaultsDatabase];
|
||||
if ([mgr isReadableFileAtPath: _defaultsDatabase] == NO)
|
||||
{
|
||||
newDict = nil;
|
||||
}
|
||||
else
|
||||
{
|
||||
newDict = [[NSMutableDictionaryClass allocWithZone: [self zone]]
|
||||
initWithContentsOfFile: _defaultsDatabase];
|
||||
}
|
||||
if (newDict == nil)
|
||||
{
|
||||
if (_fileLock == nil)
|
||||
|
|
Loading…
Reference in a new issue