[systemd-devel] [PATCH] tmpfiles: Fix handling of duplicate lines [was: Regression in 219: tmpfiles.d order not respected any more]

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Mar 5 06:47:28 PST 2015


On Thu, Mar 05, 2015 at 03:06:05PM +0100, Martin Pitt wrote:
> Hey Zbigniew, all,
> 
> Martin Pitt [2015-03-05 10:20 +0100]:
> > As per tmpfiles.d(5), the first match should win if there are several
> > tmpfiles.d lines for the same directory. Our rsyslog package ships a
> > /usr/lib/tmpfiles.d/00rsyslog.conf which sets /var/log to 0775, so
> > that it can write into it as the "syslog" system user. But now the
> > permissions of /var/log are 0755 as /usr/lib/tmpfiles.d/var.conf
> > overwrites it.
> 
> The attached patch helps and generally seems to behave fine. But I'd
> really like Zbigniew to review/ack this, I'm not entirely sure whether
> aborting on the first match is actually correct, or whether we need to
> look at the other items in the array still for some reason.
Looks good, please push!

Zbyszek


More information about the systemd-devel mailing list