From 238e8e0e642296e5ef01564ea8f0d6a5f929eaf1 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 19 2022 07:31:33 +0000 Subject: Fix creation of /var/log/lastlog I have no idea how I managed to screw that up yesterday… --- diff --git a/systemd.spec b/systemd.spec index 4cbc615..14949fd 100644 --- a/systemd.spec +++ b/systemd.spec @@ -599,7 +599,8 @@ mkdir -p %{buildroot}%{system_unit_dir}/dbus.target.wants mkdir -p %{buildroot}%{system_unit_dir}/syslog.target.wants mkdir -p %{buildroot}/run mkdir -p %{buildroot}%{_localstatedir}/log -install -d %{buildroot}%{_localstatedir}/log -m 0664 -g utmp +touch %{buildroot}%{_localstatedir}/log/lastlog +chmod 0664 %{buildroot}%{_localstatedir}/log/lastlog touch %{buildroot}/run/utmp touch %{buildroot}%{_localstatedir}/log/{w,b}tmp @@ -695,7 +696,7 @@ python3 %{SOURCE2} %buildroot <