]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: don't update utab when moving /run
authorKarel Zak <kzak@redhat.com>
Thu, 19 Jun 2025 10:23:57 +0000 (12:23 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Jun 2025 10:27:35 +0000 (12:27 +0200)
commitc8e5b8a818323af30ec656f079c7feadaeeb13c3
treea0b1d26284de9e84ca033f8078d695dcefd2f7bf
parent10f0de325d016d7f0fcdbb07372292bd406fdb96
libmount: don't update utab when moving /run

It's bad idea to try update /run/mount/utab when moving any directory
in way to the file (like /run).

It's also unnecessary to prepare any updates if the utab file is
empty. This is already done for umount, and we can use it for mount
move as well.

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