tmpfiles: implement --dry-run
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Dec 2023 08:50:38 +0000 (09:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 12 Feb 2024 12:33:30 +0000 (13:33 +0100)
commit9e90d4f42ef7911c286a9f217b32a018159e8ed6
tree6b66becfd0757599cc99999f17a09d51bee3b533
parent117aa0140f42a8b905a1d95a3b0d664ec4b779f8
tmpfiles: implement --dry-run

The idea is simple: skip the final operation that creates or removes things
or changes the attributes, but otherwise go through the rest of the code.
This results in quite a lot of fairly repetitive conditions in the low-level
code. Another approach would be to print earlier, at a higher level, but then
we'd have less precise information about what is about to happen.
TODO
man/systemd-tmpfiles.xml
src/tmpfiles/tmpfiles.c