]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix mount path
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 14 Mar 2011 20:47:15 +0000 (21:47 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 14 Mar 2011 20:47:15 +0000 (21:47 +0100)
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c

index 60f91883580eeaad4138797969420a3d7f9b95ce..f73eaac8d5aea03f810b0f06ce30fbd23ec9b879 100644 (file)
@@ -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,