diff options
Diffstat (limited to 'bin/mkdir/mkdir.c')
-rw-r--r-- | bin/mkdir/mkdir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c index 32d45d5..458ec79 100644 --- a/bin/mkdir/mkdir.c +++ b/bin/mkdir/mkdir.c @@ -104,8 +104,10 @@ main(argc, argv) } if (mkdir(*argv, oct ? omode : getmode(set, S_IRWXU | S_IRWXG | S_IRWXO)) < 0) { - warn("%s", *argv); - exitval = 1; + if (!pflag) { + warn("%s", *argv); + exitval = 1; + } } } exit(exitval); |