From 1bb02a2da9f1bf7d80b352d540b29371099ab570 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 15 Oct 2015 12:12:11 +0200 Subject: libmount: follow docs with parse-error callback return code The docs says that recoverable errors have rc > 0. Signed-off-by: Karel Zak --- libmount/src/tab_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmount/src/tab_parse.c') diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index 0fd36282d..4c473905f 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -651,7 +651,7 @@ int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filenam } if (rc) { - if (rc == 1) { + if (rc > 0) { mnt_reset_fs(fs); assert(fs->refcount == 1); continue; /* recoverable error, reuse fs*/ -- cgit v1.2.3-55-g7522