aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/fopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/guts/fopen.c')
-rw-r--r--ports/unix/guts/fopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/guts/fopen.c b/ports/unix/guts/fopen.c
index 4214980..87c7d78 100644
--- a/ports/unix/guts/fopen.c
+++ b/ports/unix/guts/fopen.c
@@ -19,7 +19,7 @@
pseudo_debug(PDBGF_OP, "fopen '%s': fd %d <FILE %p>\n", path, fd, (void *) rc);
if (base_fstat(fd, &buf) != -1) {
if (!existed) {
- real_fchmod(fd, PSEUDO_FS_MODE(0600, 0));
+ real_fchmod(fd, PSEUDO_FS_MODE(0666 & ~pseudo_umask, 0));
pseudo_client_op(OP_CREAT, 0, -1, -1, path, &buf);
}
pseudo_client_op(OP_OPEN, pseudo_access_fopen(mode), fd, -1, path, &buf);