libmount doesn't set errno appropriately here: $ findmnt -s findmnt: /etc/fstab: parse error at line 20: Success Signed-off-by: Dave Reisner <dreisner@xxxxxxxxxxxxx> --- misc-utils/findmnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index 9c2b9fc..4577dc6 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -484,7 +484,7 @@ leave: static int parser_errcb(struct libmnt_table *tb __attribute__ ((__unused__)), const char *filename, int line) { - warn(_("%s: parse error at line %d"), filename, line); + warnx(_("%s: parse error at line %d"), filename, line); return 0; } -- 1.7.8 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html