aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/makedevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/makedevs.c b/toys/other/makedevs.c
index def1c4b6..fa2b72d8 100644
--- a/toys/other/makedevs.c
+++ b/toys/other/makedevs.c
@@ -90,7 +90,7 @@ void makedevs_main()
} else ptr = node;
if (type == 'd') {
- if (mkpathat(AT_FDCWD, ptr, mode, 3)) {
+ if (mkpathat(AT_FDCWD, ptr, mode, MKPATHAT_MKLAST | MKPATHAT_MAKE)) {
perror_msg("can't create directory '%s'", ptr);
continue;
}