diff options
Diffstat (limited to 'src/mkdir.c')
-rw-r--r-- | src/mkdir.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mkdir.c b/src/mkdir.c index 0bbe34441..74b8d377c 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -33,9 +33,9 @@ #include <sys/types.h> #include "system.h" #include "modechange.h" +#include "makepath.h" #include "version.h" -int make_path (); void error (); static void usage (); @@ -123,7 +123,10 @@ main (argc, argv) for (; optind < argc; ++optind) { if (path_mode) - errors |= make_path (argv[optind], newmode, parent_mode, -1, -1, NULL); + { + errors |= make_path (argv[optind], newmode, parent_mode, + -1, -1, 1, NULL); + } else if (mkdir (argv[optind], newmode)) { error (0, errno, "cannot make directory `%s'", argv[optind]); |