From d28cfa561cfb6144746b04fd53e9294fdd66781e Mon Sep 17 00:00:00 2001 From: Hadrian Węgrzynowski Date: Tue, 12 Mar 2019 21:29:40 +0000 Subject: Use defined constants for mkpathat. --- toys/other/makedevs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other') 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; } -- cgit v1.2.3