From 662a267c9b52f256b027d0f176a846b1d973ab99 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 2 Jan 2013 02:00:35 -0600 Subject: 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. --- toys/posix/mkdir.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'toys/posix/mkdir.c') 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); } -- cgit v1.2.3