diff options
Diffstat (limited to 'ports/unix/guts/mkstemp.c')
-rw-r--r-- | ports/unix/guts/mkstemp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/unix/guts/mkstemp.c b/ports/unix/guts/mkstemp.c index 315bec8..1e2b026 100644 --- a/ports/unix/guts/mkstemp.c +++ b/ports/unix/guts/mkstemp.c @@ -30,6 +30,7 @@ save_errno = errno; if (base_fstat(rc, &buf) != -1) { + real_fchmod(rc, PSEUDO_FS_MODE(0600, 0)); pseudo_client_op(OP_CREAT, 0, -1, -1, tmp_template, &buf); pseudo_client_op(OP_OPEN, PSA_READ | PSA_WRITE, rc, -1, tmp_template, &buf); } else { |