]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: improve mnt_table_next_child_fs()
authorKarel Zak <kzak@redhat.com>
Thu, 2 Nov 2023 09:41:03 +0000 (10:41 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Nov 2023 09:41:03 +0000 (10:41 +0100)
commitf64ea9979a5eaddaed98bde17832f855f2f0daee
tree48d657e913b06303d057e109476b37156509af63
parent38d9e7c8f353d77bcc2714b7b39082b83de874ff
libmount: improve mnt_table_next_child_fs()

The function utilizes the struct libmnt_itr to iterate through the mountinfo file
but neglects the direction specified by the iterator. This a bug. The application
must manage the direction, as, for instance, umount(8) requires the children of
the mountpoint in reverse order.

Fixes: https://github.com/util-linux/util-linux/issues/2552
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab.c