aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/mkfifo.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/mkfifo.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/mkfifo.c')
-rw-r--r--toys/posix/mkfifo.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/toys/posix/mkfifo.c b/toys/posix/mkfifo.c
index 322c0bd2..15fab70a 100644
--- a/toys/posix/mkfifo.c
+++ b/toys/posix/mkfifo.c
@@ -30,10 +30,6 @@ void mkfifo_main(void)
TT.mode = 0666;
if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0);
- for (s = toys.optargs; *s; s++) {
- if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) {
- perror_msg("cannot create fifo '%s'", *s);
- toys.exitval = 1;
- }
- }
+ for (s = toys.optargs; *s; s++)
+ if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) perror_msg("%s", *s);
}