chiark / gitweb /
machinectl: add new commands for copying files from/to containers
[elogind.git] / src / shared / btrfs-util.c
index fcf543a465033598751fe493cdd2743a77c7f534..492d7fc777cefcb2de2b9b8033e7b9ef6451fb1a 100644 (file)
@@ -122,7 +122,7 @@ int btrfs_subvol_snapshot(const char *old_path, const char *new_path, bool read_
                         if (r < 0)
                                 return r;
 
-                        r = copy_tree_fd(old_fd, new_path, true);
+                        r = copy_directory_fd(old_fd, new_path, true);
                         if (r < 0) {
                                 btrfs_subvol_remove(new_path);
                                 return r;