aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorHadrian Węgrzynowski <hadrian@hawski.com>2019-03-12 21:29:40 +0000
committerRob Landley <rob@landley.net>2019-03-13 14:16:50 -0500
commitd28cfa561cfb6144746b04fd53e9294fdd66781e (patch)
tree3b1a320120bee358fd10104867d07a53cafead0d /toys/other
parente889a27376f96735a7e5fde820e1f98e2a6eff90 (diff)
downloadtoybox-d28cfa561cfb6144746b04fd53e9294fdd66781e.tar.gz
Use defined constants for mkpathat.
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;
}