mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix for #361
This commit is contained in:
parent
6052d4e8ae
commit
d988153800
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2024-02-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSData.m: fix for #361
|
||||
|
||||
2024-02-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSFileHandle.m:
|
||||
|
|
|
@ -2011,9 +2011,13 @@ failure:
|
|||
NSWarnMLog(@"mkstemp (%s) failed - %@", thePath, [NSError _last]);
|
||||
goto failure;
|
||||
}
|
||||
/* Created writable files are supposed to only have read and/or
|
||||
* write set (no execute) according to Apple documentation.
|
||||
* They should honor the setting specified by umask though.
|
||||
*/
|
||||
mask = umask(0);
|
||||
umask(mask);
|
||||
fchmod(desc, 0644 & ~mask);
|
||||
fchmod(desc, 0666 & ~mask);
|
||||
if ((theFile = fdopen(desc, "w")) == 0)
|
||||
{
|
||||
close(desc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue