mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Make user defaults more secure on all systems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14341 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8b1fc0e981
commit
76266fba00
4 changed files with 67 additions and 43 deletions
|
@ -857,7 +857,6 @@ failure:
|
|||
att = [[mgr fileAttributesAtPath: path
|
||||
traverseLink: YES] mutableCopy];
|
||||
IF_NO_GC(TEST_AUTORELEASE(att));
|
||||
[mgr removeFileAtPath: path handler: nil];
|
||||
}
|
||||
|
||||
c = rename(thePath, theRealPath);
|
||||
|
@ -868,7 +867,7 @@ failure:
|
|||
goto failure;
|
||||
}
|
||||
|
||||
if (att)
|
||||
if (att != nil)
|
||||
{
|
||||
/*
|
||||
* We have created a new file - so we attempt to make it's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue