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

@ -2,6 +2,10 @@
* Source/NSTask.m: Tidied code a little, added safety checks for
usePseudoTerminal method.
* Source/NSData.m: ([writeToFile:atomically:]) create new files
with permission 0644 modified by umask.
* Tools/gsdoc.m: Use memory management macros and attempt to get
back to something like conformance with coding standards.
* Documentation/gsdoc/NSTask.gsdoc: documentation fleshed out.
2001-04-16 Adam Fedor <fedor@gnu.org>

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);

File diff suppressed because it is too large Load diff