diff options
author | Rob Landley <rob@landley.net> | 2013-01-02 02:00:35 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-01-02 02:00:35 -0600 |
commit | 662a267c9b52f256b027d0f176a846b1d973ab99 (patch) | |
tree | 1ff58749c737a283a199e1e567894fe16a9d0ce5 /toys/posix/rm.c | |
parent | 090c5c607ec682e5cfc03bbc745cd1ed28d5d6ce (diff) | |
download | toybox-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/rm.c')
-rw-r--r-- | toys/posix/rm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/toys/posix/rm.c b/toys/posix/rm.c index c9f741ca..7954daec 100644 --- a/toys/posix/rm.c +++ b/toys/posix/rm.c @@ -64,7 +64,6 @@ static int do_rm(struct dirtree *try) skip: if (unlinkat(fd, try->name, using)) { perror_msg("%s", try->name); - toys.exitval = 1; nodelete: if (try->parent) try->parent->symlink = (char *)1; } @@ -82,7 +81,6 @@ void rm_main(void) for (s = toys.optargs; *s; s++) { if (!strcmp(*s, "/")) { error_msg("rm /. if you mean it"); - toys.exitval = 1; continue; } |