diff options
Diffstat (limited to 'ports/linux/guts/openat.c')
-rw-r--r-- | ports/linux/guts/openat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/linux/guts/openat.c b/ports/linux/guts/openat.c index 338bd45..eb7c0b5 100644 --- a/ports/linux/guts/openat.c +++ b/ports/linux/guts/openat.c @@ -75,7 +75,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)); + real_fchmod(rc, PSEUDO_FS_MODE(mode, 0)); pseudo_client_op(OP_CREAT, 0, -1, dirfd, path, &buf); } pseudo_client_op(OP_OPEN, PSEUDO_ACCESS(flags), rc, dirfd, path, &buf); |