summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_parse.c
diff options
context:
space:
mode:
authorKarel Zak2016-04-15 14:10:23 +0200
committerKarel Zak2016-04-15 14:10:23 +0200
commitedeb6223fed8f5e5b4088d34007c3860c928906a (patch)
tree0fca6757299369352bc8ca166d8aa890d5e9b805 /libmount/src/tab_parse.c
parentlibmount: fix mnt_table_parse_mtab() logic (diff)
downloadkernel-qcow2-util-linux-edeb6223fed8f5e5b4088d34007c3860c928906a.tar.gz
kernel-qcow2-util-linux-edeb6223fed8f5e5b4088d34007c3860c928906a.tar.xz
kernel-qcow2-util-linux-edeb6223fed8f5e5b4088d34007c3860c928906a.zip
tests: make tests more portable due to mtab
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r--libmount/src/tab_parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
index 45276a057..044e15415 100644
--- a/libmount/src/tab_parse.c
+++ b/libmount/src/tab_parse.c
@@ -1100,7 +1100,9 @@ int __mnt_table_parse_mtab(struct libmnt_table *tb, const char *filename,
if (!is_mountinfo(tb))
return 0;
+#ifdef USE_LIBMOUNT_SUPPORT_MTAB
read_utab:
+#endif
DBG(TAB, ul_debugobj(tb, "mtab parse: #2 read utab"));
if (mnt_table_get_nents(tb) == 0)