]> git.ipfire.org Git - thirdparty/systemd.git/commit
copy: Respect COPY_REPLACE flag for copy_tree
authorAlexander Wilson <rdtscp@fb.com>
Fri, 22 Jul 2022 11:13:31 +0000 (04:13 -0700)
committerAlexander Wilson <rdtscp@fb.com>
Wed, 27 Jul 2022 15:40:59 +0000 (08:40 -0700)
commit922409558e46f855a8fba2c666c056fd95dc2428
tree6849678cd4a809fe3fbc8b5c78a27df3287512e9
parentd3e2a7f7e6f1167b38ee333a34d610e165252a36
copy: Respect COPY_REPLACE flag for copy_tree
- Add a test that asserts that copy_tree on an existing file will fail without COPY_REPLACE
- Add a test that asserts that copy_tree with COPY_MERGE and COPY_REPLACE on an existing directory will overwrite files that already exist.
src/shared/copy.c
src/test/test-copy.c