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

Currenlty a generated path contains two slashes successively.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2014-10-23 17:49:02 +04:00 committed by Pavel Emelyanov
parent 4862246c10
commit ffe7f01d29

View file

@ -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)