]> 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>
Fri, 24 Nov 2023 10:17:44 +0000 (11:17 +0100)
commitbf2cd1d5a6eb273fbb11931b86ae165e7da5a397
tree81d44970d38c6bca7a86083c147a784ad92b5cab
parentc14f5bf37adf681c378fc004f0996e0bcfd30ce0
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