]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: ignore non-directory mountpoints
authorKarel Zak <kzak@redhat.com>
Thu, 5 Sep 2019 14:28:49 +0000 (16:28 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Sep 2019 14:32:10 +0000 (16:32 +0200)
commitf227757c77bf0992de4c3c03349ab4a345e6b409
tree1165df51a97360b510aec2fd6015974f86426163
parent40af0db4cdadc50d9ba7ea77d8fa0689bf976f9f
fstrim: ignore non-directory mountpoints

It seems better to silently ignore mount binds on file (= mountpoint
is not a directory).

This patch also fixes use-after-free bug from commit 402006fa6e.

Addresses: https://github.com/karelzak/util-linux/issues/857
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fstrim.8
sys-utils/fstrim.c