]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/canonicalize: make DM canonicalization more robust
authorKarel Zak <kzak@redhat.com>
Tue, 20 May 2014 08:11:57 +0000 (10:11 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 20 May 2014 08:11:57 +0000 (10:11 +0200)
commit1dbbd85b9498536ab38758a03c9ec20362f1c572
tree68c6e9f425e7132df226ca59873868ef148273b3
parent4b8f83361b08e3a383d2534c1fedf95734d4baa2
lib/canonicalize: make DM canonicalization more robust

The current code cares about filenames, but it's too fragile, we have
to check the path is really path to the block device.

Addresses: https://github.com/karelzak/util-linux/issues/83
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/canonicalize.c