]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mountpoint: account for error from in mnt_fs_get_target
authorDave Reisner <d@falconindy.com>
Fri, 2 Mar 2012 03:46:59 +0000 (22:46 -0500)
committerKarel Zak <kzak@redhat.com>
Fri, 2 Mar 2012 08:42:18 +0000 (09:42 +0100)
commiteac83fbcf6476f82aca86fe9b69f60c3a9a43d92
tree2131202e05bad5ef76ed05703c702c27ceaf7390
parent86ace3f407289dac85a6c1ead74461bea8775911
mountpoint: account for error from in mnt_fs_get_target

commit 04f087ec didn't take into consideration that mnt_fs_get_target()
could return an error, and would therefore show false positives, such
as:

$ mkdir foo; mountpoint foo
foo is a mountpoint

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
sys-utils/mountpoint.c