1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

nspawn: fix copy/reflink fallback when directory already exists (#8781)

This commit is contained in:
Milan 2018-04-24 11:38:08 +02:00 committed by Lennart Poettering
parent 46c5cf49e1
commit 679def2a06

View File

@ -1690,7 +1690,7 @@ int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, BtrfsSnapshotFlag
if (r == -ENOTTY && (flags & BTRFS_SNAPSHOT_FALLBACK_DIRECTORY)) {
/* If the destination doesn't support subvolumes, then use a plain directory, if that's requested. */
if (mkdir(new_path, 0755) < 0)
return r;
return -errno;
plain_directory = true;
} else if (r < 0)