diff options
author | Hadrian Węgrzynowski <hadrian@hawski.com> | 2019-03-12 21:29:40 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-03-13 14:16:50 -0500 |
commit | d28cfa561cfb6144746b04fd53e9294fdd66781e (patch) | |
tree | 3b1a320120bee358fd10104867d07a53cafead0d /toys/other | |
parent | e889a27376f96735a7e5fde820e1f98e2a6eff90 (diff) | |
download | toybox-d28cfa561cfb6144746b04fd53e9294fdd66781e.tar.gz |
Use defined constants for mkpathat.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/makedevs.c | 2 |
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; } |