]> git.proxmox.com Git - mirror_lxc.git/commit
btrfs: ensure \0 byte at end
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Mar 2019 11:47:23 +0000 (12:47 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Mar 2019 11:48:50 +0000 (12:48 +0100)
commit317e6a8348a40a3c249860921f83f6c1e526095d
tree339f80c000fb832f617453c0e08588608c557848
parent7f240f4756e2b6b982e73f905e2adbcb13961032
btrfs: ensure \0 byte at end

Apparently the name received from the tree walk is not guaranteed to have \0
byte at the end. So let's make sure we append one.
Note that this is only an issue if there are any subvolumes in the container's
rootfs.

Closes 2826.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/storage/btrfs.c