[lxc-devel] [lxc/lxc] 317e6a: btrfs: ensure \0 byte at end

Stéphane Graber noreply at github.com
Mon Mar 11 14:55:05 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 317e6a8348a40a3c249860921f83f6c1e526095d
      https://github.com/lxc/lxc/commit/317e6a8348a40a3c249860921f83f6c1e526095d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M src/lxc/storage/btrfs.c

  Log Message:
  -----------
  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 at ubuntu.com>


  Commit: bbebc423bf267a084faec73ee5df72d32ea86751
      https://github.com/lxc/lxc/commit/bbebc423bf267a084faec73ee5df72d32ea86751
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M src/lxc/storage/btrfs.c

  Log Message:
  -----------
  Merge pull request #2900 from brauner/2019-03-11/2826

btrfs: ensure \0 byte at end


Compare: https://github.com/lxc/lxc/compare/7f240f4756e2...bbebc423bf26


More information about the lxc-devel mailing list