diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-09-08 21:34:33 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-09-08 21:34:33 +0000 |
commit | d653487a46d1b1763c422ee6606679b66dea30b1 (patch) | |
tree | 7d8e3fb88b0047f5e882551c9ee236293cd31506 /bin | |
parent | 7ad3ea76c06ac9646b1b9d2742530cd9b343fa90 (diff) | |
download | src-test2-d653487a46d1b1763c422ee6606679b66dea30b1.tar.gz src-test2-d653487a46d1b1763c422ee6606679b66dea30b1.zip |
Notes
Diffstat (limited to 'bin')
-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 32d45d5844a2..458ec79d8636 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); |