summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2009-07-02 09:50:26 +0200
committerKarel Zak2009-07-02 09:50:26 +0200
commit14b613f3a90e89217f518fcc56769db5ab0fab0f (patch)
tree78c5015a4202886a1d2f7cd178a9c0d66c29fcab
parentuuidd: init /var/run/uuidd, add option for on-demand mode to .rc file (diff)
downloadkernel-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.h2
-rw-r--r--mount/lomount.c2
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);