summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);