diff options
author | Karel Zak | 2009-07-02 09:50:26 +0200 |
---|---|---|
committer | Karel Zak | 2009-07-02 09:50:26 +0200 |
commit | 14b613f3a90e89217f518fcc56769db5ab0fab0f (patch) | |
tree | 78c5015a4202886a1d2f7cd178a9c0d66c29fcab | |
parent | uuidd: init /var/run/uuidd, add option for on-demand mode to .rc file (diff) | |
download | kernel-qcow2-util-linux-14b613f3a90e89217f518fcc56769db5ab0fab0f.tar.gz kernel-qcow2-util-linux-14b613f3a90e89217f518fcc56769db5ab0fab0f.tar.xz kernel-qcow2-util-linux-14b613f3a90e89217f518fcc56769db5ab0fab0f.zip |
include: fix _PATH_DEV
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | include/pathnames.h | 2 | ||||
-rw-r--r-- | mount/lomount.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index 12170f9df..ead448e37 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 c6e0c929c..b17ed5c89 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); |