summaryrefslogtreecommitdiff
path: root/src/tmpfiles
diff options
context:
space:
mode:
authorRyan Gonzalez <rymg19@gmail.com>2019-01-06 18:12:31 -0600
committerRyan Gonzalez <rymg19@gmail.com>2019-01-08 14:30:15 -0600
commita6f4464571f516c44af731b033e557671bcf8ca5 (patch)
tree54c46bb1e010aa142ffb2f3066de64bb7dbe81b2 /src/tmpfiles
parent609d34736fc69ce3bf261eddd1948fe34025923a (diff)
downloadsystemd-a6f4464571f516c44af731b033e557671bcf8ca5.tar.gz
tmpfiles: Make C still copy if the destination directory is empty
Fixes #11287.
Diffstat (limited to 'src/tmpfiles')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 19225f8cfd..03a9e1d1f0 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -1463,7 +1463,7 @@ static int copy_files(Item *i) {
dfd, bn,
i->uid_set ? i->uid : UID_INVALID,
i->gid_set ? i->gid : GID_INVALID,
- COPY_REFLINK);
+ COPY_REFLINK | COPY_MERGE_EMPTY);
if (r < 0) {
struct stat a, b;