Various tidyups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9623 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-04-19 12:02:13 +00:00
parent d6be9f040d
commit 5c7e2204fc
3 changed files with 492 additions and 341 deletions

View file

@ -707,6 +707,7 @@ failure:
if (useAuxiliaryFile)
{
int desc;
int mask;
strcpy(thePath, theRealPath);
strcat(thePath, "XXXXXX");
@ -715,6 +716,9 @@ failure:
NSLog(@"mkstemp (%s) failed - %s", thePath, strerror(errno));
goto failure;
}
mask = umask(0);
umask(mask);
fchmod(desc, 0644 & ~mask);
if ((theFile = fdopen(desc, "w")) == 0)
{
close(desc);