From: Todd C. Miller Date: Thu, 26 Feb 2015 16:55:01 +0000 (-0700) Subject: Only create /usr/lib/tmpfiles.d/sudo.conf if X-Git-Tag: SUDO_1_8_13^2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e1ceb5a7b08799ea98ca71bc7e0dd3eff278bd8;p=sudo Only create /usr/lib/tmpfiles.d/sudo.conf if /usr/lib/tmpfiles.d/systemd.conf also exists. Some other package may have created /usr/lib/tmpfiles.d even though it is not used. --- diff --git a/sudo.pp b/sudo.pp index c4a810fa6..3f4d8e75f 100644 --- a/sudo.pp +++ b/sudo.pp @@ -400,8 +400,8 @@ still allow people to get their work done." esac %post [rpm,deb] - # Create /usr/lib/tmpfiles.d/sudo.conf if /lib/systemd exists - if [ -d /lib/systemd ]; then + # Create /usr/lib/tmpfiles.d/sudo.conf if systemd is configured. + if [ -r /usr/lib/tmpfiles.d/systemd.conf ]; then cat > /usr/lib/tmpfiles.d/sudo.conf <<-EOF d %{rundir} 0711 root root D %{rundir}/ts 0700 root root