From: Karel Zak Date: Thu, 15 Oct 2015 10:12:11 +0000 (+0200) Subject: libmount: follow docs with parse-error callback return code X-Git-Tag: v2.28-rc1~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bb02a2da9f1bf7d80b352d540b29371099ab570;p=thirdparty%2Futil-linux.git libmount: follow docs with parse-error callback return code The docs says that recoverable errors have rc > 0. Signed-off-by: Karel Zak --- diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index 0fd36282dd..4c473905f2 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*/