summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-09-08 21:34:33 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-09-08 21:34:33 +0000
commitd653487a46d1b1763c422ee6606679b66dea30b1 (patch)
tree7d8e3fb88b0047f5e882551c9ee236293cd31506 /bin
parent7ad3ea76c06ac9646b1b9d2742530cd9b343fa90 (diff)
downloadsrc-test2-d653487a46d1b1763c422ee6606679b66dea30b1.tar.gz
src-test2-d653487a46d1b1763c422ee6606679b66dea30b1.zip
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/mkdir/mkdir.c6
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);