Skip to content

Commit

Permalink
Merge pull request #2656 from brauner/2018-09-28/fix_btrfs_regression
Browse files Browse the repository at this point in the history
btrfs: fix btrfs containers
  • Loading branch information
stgraber committed Sep 28, 2018
2 parents 56e28f9 + 37aa485 commit 46706d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/storage/btrfs.c
Expand Up @@ -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;
Expand Down

0 comments on commit 46706d0

Please sign in to comment.