aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux/guts/freopen64.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/linux/guts/freopen64.c')
-rw-r--r--ports/linux/guts/freopen64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/linux/guts/freopen64.c b/ports/linux/guts/freopen64.c
index b6ff0a6..4bad533 100644
--- a/ports/linux/guts/freopen64.c
+++ b/ports/linux/guts/freopen64.c
@@ -19,7 +19,7 @@
pseudo_debug(PDBGF_FILE, "freopen64 '%s': fd %d\n", path, fd);
if (real___fxstat64(_STAT_VER, 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);