]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: create /var/log/lastlog if it does not exist 6235/head
authorMichael Biebl <biebl@debian.org>
Thu, 29 Jun 2017 05:57:35 +0000 (07:57 +0200)
committerMichael Biebl <biebl@debian.org>
Thu, 29 Jun 2017 06:01:37 +0000 (08:01 +0200)
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

index 24374ba8cb162431b90740fc57f320aad7bfe1f5..e640fcd8c057aaf88cf6efaf28491476d871ce19 100644 (file)
@@ -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 - - -