]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: follow docs with parse-error callback return code
authorKarel Zak <kzak@redhat.com>
Thu, 15 Oct 2015 10:12:11 +0000 (12:12 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 15 Oct 2015 10:12:11 +0000 (12:12 +0200)
The docs says that recoverable errors have rc > 0.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab_parse.c

index 0fd36282dd685d61813daa23bcd483ee9944ddc3..4c473905f2d72495a8388662eaefe004969a3ce6 100644 (file)
@@ -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*/