From: Karel Zak Date: Thu, 14 Feb 2013 14:46:06 +0000 (+0100) Subject: mountpoint: don't hardcode paths X-Git-Tag: v2.23-rc1~215 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39edf68139a0cd8460281bae3fa39c51c760ad26;p=thirdparty%2Futil-linux.git mountpoint: don't hardcode paths Signed-off-by: Karel Zak --- diff --git a/sys-utils/mountpoint.c b/sys-utils/mountpoint.c index 6ab813d72a..c86e94b12a 100644 --- a/sys-utils/mountpoint.c +++ b/sys-utils/mountpoint.c @@ -38,12 +38,13 @@ #include "xalloc.h" #include "c.h" #include "closestream.h" +#include "pathnames.h" static int quiet; static int dir_to_device(const char *spec, dev_t *dev) { - struct libmnt_table *tb = mnt_new_table_from_file("/proc/self/mountinfo"); + struct libmnt_table *tb = mnt_new_table_from_file(_PATH_PROC_MOUNTINFO); struct libmnt_fs *fs; struct libmnt_cache *cache; int rc = -1;