mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-26 19:49:12 +00:00
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:
parent
4862246c10
commit
ffe7f01d29
1 changed files with 1 additions and 1 deletions
2
mount.c
2
mount.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue