[systemd-bugs] [Bug 90455] RFE: tmpfiles: allow multiple "w" lines for the same file, as long as they share all the same attributes (with the exception of the final argument to write)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu May 14 13:54:09 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90455
--- Comment #6 from Sergio Durigan Junior <sergiodj at sergiodj.net> ---
(In reply to Lennart Poettering from comment #5)
> Well, if you have one line that sets the access mode to 0755 for a file, and
> another one which sets it to 0777, what do you do? It's not clear what
> actually should happen in that case, hence we generally report errors about
> conflicting lines.
I am not a systemd developer, so I may be talking BS here, but in this case it
seems to me that the *.conf file should be processed line-by-line, i.e., the
order matters, so if you are setting the mode to 0755 and then to 0777, the
last one "wins". Of course, there may be cases when the lines are really
conflicting, in the sense that they do things incoherently, but that is a user
error, not exactly a systemd concern.
> That said, we allow multiple completely identical lines already, and we do
> allow to combine multiple lines that set xattrs, acls, with other lines.
Cool.
> Maybe we could allow multiple w lines too, as long as everything they
> declare match, with the exception of the final argument.
That sounds like a good plan to me. Thank you for adjusting the title to
reflect this.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150514/ab5a185a/attachment.html>
More information about the systemd-bugs
mailing list