mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 04:36:21 +00:00
btrfs: fix btrfs containers
Closes #2612.
Closes #2655.
Fixes: 9de31d5a13
("tree-wide: s/strncpy()/strlcpy()/g")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
56e28f9258
commit
37aa48515b
@ -366,6 +366,7 @@ int btrfs_snapshot(const char *orig, const char *new)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
memset(&args, 0, sizeof(args));
|
memset(&args, 0, sizeof(args));
|
||||||
|
args.fd = fd;
|
||||||
retlen = strlcpy(args.name, newname, BTRFS_SUBVOL_NAME_MAX);
|
retlen = strlcpy(args.name, newname, BTRFS_SUBVOL_NAME_MAX);
|
||||||
if (retlen >= BTRFS_SUBVOL_NAME_MAX)
|
if (retlen >= BTRFS_SUBVOL_NAME_MAX)
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user