]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fix off-by-one error constructing mount options 4219/head
authorsrd424 <srd424@users.noreply.github.com>
Sun, 3 Jul 2022 09:21:30 +0000 (10:21 +0100)
committerScott Moser <smoser@brickies.net>
Tue, 8 Nov 2022 19:28:24 +0000 (14:28 -0500)
commita86ad9c57b2de80bbd24793d6cf4f43021781b69
tree53aa18281c66611f8b71c61de581f6a5d16ef309
parent5ba5725cb4a210c25707beeca64fde5f561d1c71
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>
(cherry picked from commit df3301046fc5f31881a2d4736cc5c381342ecc3d)
src/lxc/storage/overlay.c