diff options
Diffstat (limited to 'ports/linux/guts/fopen64.c')
-rw-r--r-- | ports/linux/guts/fopen64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/linux/guts/fopen64.c b/ports/linux/guts/fopen64.c index ac3fde1..32539ea 100644 --- a/ports/linux/guts/fopen64.c +++ b/ports/linux/guts/fopen64.c @@ -20,6 +20,7 @@ pseudo_debug(PDBGF_FILE, "fopen64 '%s': fd %d <FILE %p>\n", path, fd, (void *) rc); if (real___fxstat64(_STAT_VER, fd, &buf) != -1) { if (!existed) { + real_fchmod(fd, PSEUDO_FS_MODE(0600, 0)); pseudo_client_op(OP_CREAT, 0, -1, -1, path, &buf); } pseudo_client_op(OP_OPEN, pseudo_access_fopen(mode), fd, -1, path, &buf); |