]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/tmpfiles.d.xml
tmpfiles: make "f" lines behaviour match what the documentation says
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Jan 2018 09:54:10 +0000 (10:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Jan 2018 09:54:10 +0000 (10:54 +0100)
commit49e87292dc1fa942928a1e4f10c20b9f830bf2dc
tree407ec7b3addfe13dbeb6c1a931ec77349079e4b3
parent1302e7aa949877cdb4a32a8f75f143ae67adbeaf
tmpfiles: make "f" lines behaviour match what the documentation says

CHANGE OF BEHAVIOUR — with this commit "f" line's behaviour is altered
to match what the documentation says: if an "argument" string is
specified it is written to the file only when the file didn't exist
before. Previously, it would be appended to the file each time
systemd-tmpfiles was invoked — which is not a particularly useful
behaviour as the tool is not idempotent then and the indicated files
grow without bounds each time the tool is invoked.

I did some spelunking whether this change in behaviour would break
things, but afaics nothing relies on the previous O_APPEND behaviour of
this line type, hence I think it's relatively safe to make "f" lines
work the way the docs say, rather than adding a new modifier for it or
so.

Triggered by:

https://lists.freedesktop.org/archives/systemd-devel/2018-January/040171.html
NEWS
man/tmpfiles.d.xml
src/tmpfiles/tmpfiles.c