From 14b613f3a90e89217f518fcc56769db5ab0fab0f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 2 Jul 2009 09:50:26 +0200 Subject: [PATCH] include: fix _PATH_DEV Signed-off-by: Karel Zak --- include/pathnames.h | 2 +- mount/lomount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5