diff options
Diffstat (limited to 'ports/linux/guts/mkstemp64.c')
-rw-r--r-- | ports/linux/guts/mkstemp64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/linux/guts/mkstemp64.c b/ports/linux/guts/mkstemp64.c index cbeda0e..48be612 100644 --- a/ports/linux/guts/mkstemp64.c +++ b/ports/linux/guts/mkstemp64.c @@ -30,6 +30,7 @@ save_errno = errno; if (real___fxstat64(_STAT_VER, 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 { |