From: srd424 Date: Sun, 3 Jul 2022 17:18:23 +0000 (+0100) Subject: Store mount options in correct variable X-Git-Tag: v6.0.0~113^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4161%2Fhead;p=thirdparty%2Flxc.git Store mount options in correct variable This was exposed by the fix in the previous commit. Signed-off-by: srd424 --- diff --git a/src/lxc/storage/overlay.c b/src/lxc/storage/overlay.c index 0c3fa1220..f38f3a740 100644 --- a/src/lxc/storage/overlay.c +++ b/src/lxc/storage/overlay.c @@ -448,7 +448,7 @@ int ovl_mount(struct lxc_storage *bdev) strlen("upperdir=,lowerdir=,workdir=,") + strlen(mntdata) + 1; options_work = must_realloc(NULL, len2); - ret2 = snprintf(options, len2, + ret2 = snprintf(options_work, len2, "upperdir=%s,lowerdir=%s,workdir=%s,%s", upper, lower, work, mntdata); } else {