From: Daniel Lezcano Date: Mon, 14 Mar 2011 20:47:15 +0000 (+0100) Subject: fix mount path X-Git-Tag: lxc-0.7.4.1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c232d084125ee97ba3d22409bae9f1217e9dba9f;p=thirdparty%2Flxc.git fix mount path Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 60f918835..f73eaac8d 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -979,7 +979,7 @@ static int mount_entry_on_absolute_rootfs(struct mntent *mntent, goto out; } - snprintf(path, MAXPATHLEN, "%s%s", rootfs->mount, + snprintf(path, MAXPATHLEN, "%s/%s", rootfs->mount, aux + strlen(rootfs->path)); ret = mount_entry(mntent->mnt_fsname, path, mntent->mnt_type,