aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux/guts/__xmknodat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/linux/guts/__xmknodat.c')
-rw-r--r--ports/linux/guts/__xmknodat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/linux/guts/__xmknodat.c b/ports/linux/guts/__xmknodat.c
index 59b4f2f..0888b8a 100644
--- a/ports/linux/guts/__xmknodat.c
+++ b/ports/linux/guts/__xmknodat.c
@@ -9,6 +9,9 @@
pseudo_msg_t *msg;
struct stat64 buf;
+ /* mask out mode bits appropriately */
+ mode = mode & ~pseudo_umask;
+
/* we don't use underlying call, so _ver is irrelevant to us */
(void) ver;