From aff804febc31d9f0d0f98ccc3cdf9f89dd64409c Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 29 Jun 2017 07:57:35 +0200 Subject: [PATCH] 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 --- tmpfiles.d/var.conf.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/tmpfiles.d/var.conf.m4 b/tmpfiles.d/var.conf.m4 index 24374ba8cb..e640fcd8c0 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 - - -