aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-01-24 10:51:17 -0800
committerRob Landley <rob@landley.net>2016-01-25 16:10:09 -0600
commit3d950dbd646f22e8934c4e6f2612986da106a0b2 (patch)
treea45e0a331accee49ea628ef4077a9d15ebd229c4
parent58e4828e62ba3455f45d76211f697d6c4e1cbd36 (diff)
downloadtoybox-3d950dbd646f22e8934c4e6f2612986da106a0b2.tar.gz
Fix comma_args error reporting.
None of the current callers' callbacks set errno, so this was resulting in bogus errors like "No device or address" when ps tried to complain about a misspelled field.
-rw-r--r--lib/getmountlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getmountlist.c b/lib/getmountlist.c
index 7a431010..332852a8 100644
--- a/lib/getmountlist.c
+++ b/lib/getmountlist.c
@@ -19,7 +19,7 @@ void comma_args(struct arg_list *al, void *data, char *err,
arg = al->arg;
while ((next = comma_iterate(&arg, &len)))
if ((next = callback(data, next, len)))
- perror_exit("%s '%s'\n%*c", err, al->arg,
+ error_exit("%s '%s'\n%*c", err, al->arg,
(int)(5+strlen(toys.which->name)+strlen(err)+next-al->arg), '^');
al = al->next;
}