summaryrefslogtreecommitdiffstats
path: root/lib/blkdev.c
diff options
context:
space:
mode:
authorKarel Zak2014-09-16 15:30:03 +0200
committerKarel Zak2014-09-16 15:30:03 +0200
commita3b92242ad76a7468cf508e1d878d0815c7e031f (patch)
treea44369a813a607a7a3f55dcf6635fddbbe90367e /lib/blkdev.c
parentlscpu: fix cppcheck warnings (diff)
downloadkernel-qcow2-util-linux-a3b92242ad76a7468cf508e1d878d0815c7e031f.tar.gz
kernel-qcow2-util-linux-a3b92242ad76a7468cf508e1d878d0815c7e031f.tar.xz
kernel-qcow2-util-linux-a3b92242ad76a7468cf508e1d878d0815c7e031f.zip
libmount: hide details about failed search in fstab/mtab
The current code returns -errno when not found "mount /foo" in fstab and mtab does not exist (or /etc/mtab points to non-mounted /proc). This is problem because the return value is too low-level and maybe misinterpreted by top level code. It's better to always return MNT_ERR_NOFSTAB when not found in fstab/mtab. Reported-by: Dylan Cali <calid1984@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/blkdev.c')
0 files changed, 0 insertions, 0 deletions