mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
d6be9f040d
commit
5c7e2204fc
3 changed files with 492 additions and 341 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue