]> err.no Git - util-linux/commitdiff
include: fix _PATH_DEV
authorKarel Zak <kzak@redhat.com>
Thu, 2 Jul 2009 07:50:26 +0000 (09:50 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Jul 2009 07:50:26 +0000 (09:50 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/pathnames.h
mount/lomount.c

index 12170f9df15bb41f0509d7d43a567da8f15d1b55..ead448e3777c9c2c3aa485acbef2d67ba79c675f 100644 (file)
@@ -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"
index c6e0c929cc9ac0c4bf8340cb4ae6c14de2c4f396..b17ed5c89430e2b1927d71c35fd99eda6f114b2d 100644 (file)
@@ -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);