diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-01-24 10:54:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-24 10:54:10 +0100 |
commit | 49e87292dc1fa942928a1e4f10c20b9f830bf2dc (patch) | |
tree | 407ec7b3addfe13dbeb6c1a931ec77349079e4b3 /NEWS | |
parent | 1302e7aa949877cdb4a32a8f75f143ae67adbeaf (diff) | |
download | systemd-49e87292dc1fa942928a1e4f10c20b9f830bf2dc.tar.gz |
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
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -7,6 +7,18 @@ CHANGES WITH 237 in spe: keycodes are not recognized by any major desktop. They now produce Up/Down key events so that they can be used for scrolling. + * INCOMPATIBILITY: systemd-tmpfiles' "f" lines changed behaviour + slightly: previously, if an argument was specified for lines of this + type (i.e. the right-most column was set) this string was appended to + existing files each time systemd-tmpfiles was run. This behaviour was + different from what the documentation said, and not particularly + useful, as repeated systemd-tmpfiles invocations would not be + idempotent and grow such files without bounds. With this release + behaviour has been altered slightly, to match what the documentation + says: lines of this type only have an effect if the indicated files + don't exist yet, and only then the argument string is written to the + file. + — Berlin, 2018-XX-XX CHANGES WITH 236: |