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:
CaS 2002-08-27 08:52:14 +00:00
parent 8b1fc0e981
commit 76266fba00
4 changed files with 67 additions and 43 deletions

View file

@ -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