Whamcloud - gitweb
libblkid: Refuse to create a device structure for a non-existent device
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 Oct 2008 20:47:46 +0000 (16:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Oct 2008 20:47:46 +0000 (16:47 -0400)
commitfe144e11e961a8fb2c568f486bd5bcd49582e24f
tree6268cdac2435d9b4cf384d98d8683dc55ff60363
parentdf547ae88663ba4259cd61adc9f166d41e0b86f5
libblkid: 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.

Addresses-Debian-Bug: #502541

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/devname.c