summaryrefslogtreecommitdiffstats
path: root/libuuid
diff options
context:
space:
mode:
authorKarel Zak2016-12-16 12:46:45 +0100
committerKarel Zak2016-12-16 13:00:45 +0100
commit80c31a0b596125b387c6b27c899e8bad4e46680b (patch)
tree8e8a33eaf0594125130f48495c7d919af1ef8c24 /libuuid
parentmore: avoid double free() on exit (diff)
downloadkernel-qcow2-util-linux-80c31a0b596125b387c6b27c899e8bad4e46680b.tar.gz
kernel-qcow2-util-linux-80c31a0b596125b387c6b27c899e8bad4e46680b.tar.xz
kernel-qcow2-util-linux-80c31a0b596125b387c6b27c899e8bad4e46680b.zip
findmnt: error on --target /non-exist
The original --target implementation (< v2.27) has been based on stat(), so it was usable for valid paths only. The new implementation is based on search in the mountinfo file, so it works for arbitrary crazy path. This is not backwardly compatible and if the path does not exist then it still returns at least root directory mount entry. This patch forces mnt_table_find_mountpoint() to check if the path is valid before we search in the mountinfo file. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libuuid')
0 files changed, 0 insertions, 0 deletions