aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux/guts/openat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/linux/guts/openat.c')
-rw-r--r--ports/linux/guts/openat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/linux/guts/openat.c b/ports/linux/guts/openat.c
index 1225368..87fa466 100644
--- a/ports/linux/guts/openat.c
+++ b/ports/linux/guts/openat.c
@@ -10,6 +10,9 @@
int existed = 1;
int save_errno;
+ /* mask out mode bits appropriately */
+ mode = mode & ~pseudo_umask;
+
#ifdef PSEUDO_NO_REAL_AT_FUNCTIONS
if (dirfd != AT_FDCWD) {
errno = ENOSYS;