diff options
author | Karel Zak | 2015-10-15 12:12:11 +0200 |
---|---|---|
committer | Karel Zak | 2015-10-15 12:12:11 +0200 |
commit | 1bb02a2da9f1bf7d80b352d540b29371099ab570 (patch) | |
tree | e4a49a74cdb79308334ea7903f96051c9d6b094c /libmount/src/tab_parse.c | |
parent | Revert "libblkid: support LSI RAID on partition too" (diff) | |
download | kernel-qcow2-util-linux-1bb02a2da9f1bf7d80b352d540b29371099ab570.tar.gz kernel-qcow2-util-linux-1bb02a2da9f1bf7d80b352d540b29371099ab570.tar.xz kernel-qcow2-util-linux-1bb02a2da9f1bf7d80b352d540b29371099ab570.zip |
libmount: follow docs with parse-error callback return code
The docs says that recoverable errors have rc > 0.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r-- | libmount/src/tab_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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*/ |