]> git.ipfire.org Git - thirdparty/systemd.git/commit
copy: Add COPY_LOCK_BSD
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 24 Mar 2023 16:12:24 +0000 (17:12 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 15 Jun 2023 15:14:34 +0000 (17:14 +0200)
commit01428141ba42a06d22f2c0e0df26049e700f4098
tree6b209d1f6a37a04f10b467169124c37b60dea5a9
parent0867a46534335cd160c13f9176a5ef283588b565
copy: Add COPY_LOCK_BSD

When making ephemeral copies of files/directories whose cleanup
depends on whether they're locked or not, it's necessary to have the
lock from the very beginning, so let's support that with a new
COPY_LOCK_BSD flag.
src/shared/copy.c
src/shared/copy.h
src/test/test-copy.c