From: srd424 Date: Sun, 3 Jul 2022 17:18:23 +0000 (+0100) Subject: Store mount options in correct variable X-Git-Tag: lxc-5.0.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a79876b82e4cda74c76bddff07284af90ca7a7;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 {