summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-09-23 21:07:41 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-10 16:40:31 +0100
commita424958aa6a95ce037976a9b065e4c88e97992c7 (patch)
tree2920f91be1a6bcba6485634fe1a4e87e21a16fea /src/machine
parentddfdf86f813679a3bfce7f5a50a8143d1bd720c4 (diff)
downloadsystemd-a424958aa6a95ce037976a9b065e4c88e97992c7.tar.gz
copy: Support passing a deny list of files/directories to not copy
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machine-dbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
index 0a245247ec..75f397dd6b 100644
--- a/src/machine/machine-dbus.c
+++ b/src/machine/machine-dbus.c
@@ -1014,9 +1014,9 @@ int bus_machine_method_copy(sd_bus_message *message, void *userdata, sd_bus_erro
* 0 or to the actual UID shift depending on the direction we copy. If no UID shift is set we'll copy
* the UID/GIDs as they are. */
if (copy_from)
- r = copy_tree_at(containerfd, container_basename, hostfd, host_basename, uid_shift == 0 ? UID_INVALID : 0, uid_shift == 0 ? GID_INVALID : 0, copy_flags);
+ r = copy_tree_at(containerfd, container_basename, hostfd, host_basename, uid_shift == 0 ? UID_INVALID : 0, uid_shift == 0 ? GID_INVALID : 0, copy_flags, NULL);
else
- r = copy_tree_at(hostfd, host_basename, containerfd, container_basename, uid_shift == 0 ? UID_INVALID : uid_shift, uid_shift == 0 ? GID_INVALID : uid_shift, copy_flags);
+ r = copy_tree_at(hostfd, host_basename, containerfd, container_basename, uid_shift == 0 ? UID_INVALID : uid_shift, uid_shift == 0 ? GID_INVALID : uid_shift, copy_flags, NULL);
hostfd = safe_close(hostfd);
containerfd = safe_close(containerfd);