]> git.proxmox.com Git - mirror_lxc.git/commit
Fix off-by-one error constructing mount options
authorsrd424 <srd424@users.noreply.github.com>
Sun, 3 Jul 2022 09:21:30 +0000 (10:21 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Jul 2022 09:21:30 +0000 (10:21 +0100)
commitdf3301046fc5f31881a2d4736cc5c381342ecc3d
tree56f35ca10858b0d28dd87e95cae2ee4890c7022c
parentcf1f3bc45904a7a6c58f942f7500ed2a4577dcb0
Fix off-by-one error constructing mount options

This fixes a really subtle off-by-one error constructing overlay mount options if rootfs options are provided and modern overlayfs (i.e. requiring a workdir) is used. We need to allow for the extra "," required to separate the extra options when computing the length!

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