]> err.no Git - util-linux/commit
blkid: Refuse to create a device structure for a non-existent device
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 Dec 2008 14:34:28 +0000 (15:34 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:21:50 +0000 (23:21 +0100)
commit1de91705bd6bb477e5d371f056445b746977311e
treeafb0eb344e7568e56ea8b4e8722640d7e6dc447f
parent11d925c6089bd4a06efd686da202ec87d391b264
blkid: Refuse to create a device structure for a non-existent device

Fix blkid_get_dev() so it will never return a device structure if the
device file doesn't exist.

[kzak@redhat.com: port from e2fsprogs to util-linux-ng tree]

Addresses-Debian-Bug: #502541
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/devname.c