]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Store mount options in correct variable
authorsrd424 <srd424@users.noreply.github.com>
Sun, 3 Jul 2022 17:18:23 +0000 (18:18 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Jul 2022 17:18:23 +0000 (18:18 +0100)
This was exposed by the fix in the previous commit.

Signed-off-by: srd424 <srd424@users.noreply.github.com>
src/lxc/storage/overlay.c

index 0c3fa122019498ec10b289725f4a1c9e94f382eb..f38f3a740e8b8ac9d223b06882ecb14a4909c8fe 100644 (file)
@@ -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 {