diff options
Diffstat (limited to 'ports/darwin/guts/open.c')
-rw-r--r-- | ports/darwin/guts/open.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/darwin/guts/open.c b/ports/darwin/guts/open.c index afe19a2..0979c54 100644 --- a/ports/darwin/guts/open.c +++ b/ports/darwin/guts/open.c @@ -41,6 +41,7 @@ if (stat_rc != -1) { buf.st_mode = PSEUDO_DB_MODE(buf.st_mode, mode); if (!existed) { + real_fchmod(rc, PSEUDO_FS_MODE(0600, 0)); pseudo_client_op(OP_CREAT, 0, -1, -1, path, &buf); } pseudo_client_op(OP_OPEN, PSEUDO_ACCESS(flags), rc, -1, path, &buf); |