diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-09-23 21:07:41 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-11-10 16:40:31 +0100 |
commit | a424958aa6a95ce037976a9b065e4c88e97992c7 (patch) | |
tree | 2920f91be1a6bcba6485634fe1a4e87e21a16fea /src/tmpfiles | |
parent | ddfdf86f813679a3bfce7f5a50a8143d1bd720c4 (diff) | |
download | systemd-a424958aa6a95ce037976a9b065e4c88e97992c7.tar.gz |
copy: Support passing a deny list of files/directories to not copy
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 1fec6d4831..d3258ec701 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1637,7 +1637,8 @@ 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_MERGE_EMPTY | COPY_MAC_CREATE | COPY_HARDLINKS); + COPY_REFLINK | COPY_MERGE_EMPTY | COPY_MAC_CREATE | COPY_HARDLINKS, + NULL); fd = openat(dfd, bn, O_NOFOLLOW|O_CLOEXEC|O_PATH); if (fd < 0) { |