[CRIU] [PATCH 4/9] mount: don't add extra / between a temporary root and mountpoint

Andrey Vagin avagin at openvz.org
Thu Oct 23 06:49:02 PDT 2014


Currenlty a generated path contains two slashes successively.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mount.c b/mount.c
index ac89baa..1f233c3 100644
--- a/mount.c
+++ b/mount.c
@@ -1563,7 +1563,7 @@ static char *mnt_roots;
  */
 static inline int print_ns_root(struct ns_id *ns, char *buf, int bs)
 {
-	return snprintf(buf, bs, "%s/%d/", mnt_roots, ns->id);
+	return snprintf(buf, bs, "%s/%d", mnt_roots, ns->id);
 }
 
 static int create_mnt_roots(void)
-- 
1.9.3



More information about the CRIU mailing list