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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/linux/guts/__xmknodat.c b/ports/linux/guts/__xmknodat.c
index 49b2f8f..59b4f2f 100644
--- a/ports/linux/guts/__xmknodat.c
+++ b/ports/linux/guts/__xmknodat.c
@@ -31,10 +31,11 @@
return -1;
}
#ifdef PSEUDO_NO_REAL_AT_FUNCTIONS
- rc = real_open(path, O_CREAT | O_WRONLY | O_EXCL, PSEUDO_FS_MODE(mode));
+ rc = real_open(path, O_CREAT | O_WRONLY | O_EXCL,
+ PSEUDO_FS_MODE(mode, 0));
#else
rc = real_openat(dirfd, path, O_CREAT | O_WRONLY | O_EXCL,
- PSEUDO_FS_MODE(mode));
+ PSEUDO_FS_MODE(mode, 0));
#endif
if (rc == -1) {
return -1;