1 Index: new/src/lxc/lxccontainer.c
2 ===================================================================
3 --- new.orig/src/lxc/lxccontainer.c
4 +++ new/src/lxc/lxccontainer.c
5 @@ -819,10 +819,10 @@ static struct bdev *do_bdev_create(struc
7 ret = snprintf(dest, len, "%s", rpath);
9 - const char *lxcpath = lxcapi_get_config_path(c);
10 - len = strlen(c->name) + strlen(lxcpath) + 9;
11 + const char *rootfs_path = "/var/lib/lxc";
12 + len = strlen(c->name) + strlen(rootfs_path) + 9;
14 - ret = snprintf(dest, len, "%s/%s/rootfs", lxcpath, c->name);
15 + ret = snprintf(dest, len, "%s/%s/rootfs", rootfs_path, c->name);
17 if (ret < 0 || ret >= len)