findmnt: use ID to detect tree-ability

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2020-04-24 16:11:44 +02:00
parent 4b5ec23c5a
commit abd584bee0

View file

@ -895,7 +895,7 @@ static int tab_is_tree(struct libmnt_table *tb)
rc = (mnt_table_next_fs(tb, itr, &fs) == 0 &&
mnt_fs_is_kernel(fs) &&
mnt_fs_get_root(fs));
mnt_fs_get_id(fs));
mnt_free_iter(itr);
return rc;