From 37aa48515b6dbe20b1611e24423f2ca62c59b9d5 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 28 Sep 2018 11:24:46 +0200 Subject: [PATCH] btrfs: fix btrfs containers Closes #2612. Closes #2655. Fixes: 9de31d5a1394 ("tree-wide: s/strncpy()/strlcpy()/g") Signed-off-by: Christian Brauner --- src/lxc/storage/btrfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/storage/btrfs.c b/src/lxc/storage/btrfs.c index af7f6eb1e..049074a45 100644 --- a/src/lxc/storage/btrfs.c +++ b/src/lxc/storage/btrfs.c @@ -366,6 +366,7 @@ int btrfs_snapshot(const char *orig, const char *new) goto out; memset(&args, 0, sizeof(args)); + args.fd = fd; retlen = strlcpy(args.name, newname, BTRFS_SUBVOL_NAME_MAX); if (retlen >= BTRFS_SUBVOL_NAME_MAX) goto out;