From: Michael Biebl Date: Thu, 29 Jun 2017 05:57:35 +0000 (+0200) Subject: tmpfiles: create /var/log/lastlog if it does not exist X-Git-Tag: v234~51^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aff804febc31d9f0d0f98ccc3cdf9f89dd64409c;p=thirdparty%2Fsystemd.git tmpfiles: create /var/log/lastlog if it does not exist Create /var/log/lastlog the same way we create utmp and wtmp. This is useful for stateless systems where /var is volatile and a missing /var/log/lastlog otherwise creates error messages like Jun 27 20:00:00 huron sshd[1234]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory Fixes #6234 --- diff --git a/tmpfiles.d/var.conf.m4 b/tmpfiles.d/var.conf.m4 index 24374ba8cb1..e640fcd8c05 100644 --- a/tmpfiles.d/var.conf.m4 +++ b/tmpfiles.d/var.conf.m4 @@ -15,6 +15,7 @@ d /var/log 0755 - - - m4_ifdef(`HAVE_UTMP', f /var/log/wtmp 0664 root utmp - f /var/log/btmp 0600 root utmp - +f /var/log/lastlog 0664 root utmp - )m4_dnl d /var/cache 0755 - - -