From: Karel Zak Date: Thu, 2 Jul 2009 07:50:26 +0000 (+0200) Subject: include: fix _PATH_DEV X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14b613f3a90e89217f518fcc56769db5ab0fab0f;p=util-linux include: fix _PATH_DEV Signed-off-by: Karel Zak --- diff --git a/include/pathnames.h b/include/pathnames.h index 12170f9d..ead448e3 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -94,7 +94,7 @@ #define _PATH_MOUNTED_TMP _PATH_MOUNTED ".tmp" #ifndef _PATH_DEV -# define _PATH_DEV "/dev" +# define _PATH_DEV "/dev/" #endif #define _PATH_DEV_LOOP "/dev/loop" diff --git a/mount/lomount.c b/mount/lomount.c index c6e0c929..b17ed5c8 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -178,7 +178,7 @@ looplist_open_dev(struct looplist *ll, int lnum) snprintf(ll->name, sizeof(ll->name), ll->flag & LLFLG_SUBDIR ? _PATH_DEV_LOOP "/%d" : - _PATH_DEV "/loop%d", + _PATH_DEV "loop%d", lnum); fd = open(ll->name, O_RDONLY);