aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/mkdir.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-01-02 02:00:35 -0600
committerRob Landley <rob@landley.net>2013-01-02 02:00:35 -0600
commit662a267c9b52f256b027d0f176a846b1d973ab99 (patch)
tree1ff58749c737a283a199e1e567894fe16a9d0ce5 /toys/posix/mkdir.c
parent090c5c607ec682e5cfc03bbc745cd1ed28d5d6ce (diff)
downloadtoybox-662a267c9b52f256b027d0f176a846b1d973ab99.tar.gz
Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
Diffstat (limited to 'toys/posix/mkdir.c')
-rw-r--r--toys/posix/mkdir.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/toys/posix/mkdir.c b/toys/posix/mkdir.c
index a523fd59..24930f4a 100644
--- a/toys/posix/mkdir.c
+++ b/toys/posix/mkdir.c
@@ -69,10 +69,5 @@ void mkdir_main(void)
if(toys.optflags&FLAG_m) TT.mode = string_to_mode(TT.arg_mode, 0777);
- for (s=toys.optargs; *s; s++) {
- if (do_mkdir(*s)) {
- perror_msg("'%s'", *s);
- toys.exitval = 1;
- }
- }
+ for (s=toys.optargs; *s; s++) if (do_mkdir(*s)) perror_msg("'%s'", *s);
}