summaryrefslogtreecommitdiffstats
path: root/src/import/import-fs.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-06-01 13:42:39 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-06-06 14:42:03 +0200
commitf9f70e062da2557a1127dbd584c7dfae7defe149 (patch)
tree8ccf9aa315df45320f399f53a1ab90d9535d6786 /src/import/import-fs.c
parenttests: fix shellcheck warnings (diff)
downloadsystemd-f9f70e062da2557a1127dbd584c7dfae7defe149.tar.xz
systemd-f9f70e062da2557a1127dbd584c7dfae7defe149.zip
copy: Merge copy_directory() and copy_directory_fd() into copy_directory_at()
Let's merge these two into a single function that can handle both variants and more.
Diffstat (limited to 'src/import/import-fs.c')
-rw-r--r--src/import/import-fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/import/import-fs.c b/src/import/import-fs.c
index d81dd13ffd..221febea19 100644
--- a/src/import/import-fs.c
+++ b/src/import/import-fs.c
@@ -206,9 +206,9 @@ static int import_fs(int argc, char *argv[], void *userdata) {
progress_bytes,
&progress);
else
- r = copy_directory_fd_full(
- fd,
- dest,
+ r = copy_directory_at_full(
+ fd, NULL,
+ AT_FDCWD, dest,
COPY_REFLINK|
COPY_SAME_MOUNT|
COPY_HARDLINKS|