From 3d950dbd646f22e8934c4e6f2612986da106a0b2 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 24 Jan 2016 10:51:17 -0800 Subject: 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. --- lib/getmountlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/getmountlist.c') 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; } -- cgit v1.2.3