Commit ffe7f01d authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

mount: don't add extra / between a temporary root and mountpoint

Currenlty a generated path contains two slashes successively.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4862246c
......@@ -1567,7 +1567,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment