]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
commitaff804febc31d9f0d0f98ccc3cdf9f89dd64409c
tree4cd147ef81de6f2dfcac2ae694e86fa6022f9b34
parent1f3e486fa7b00cbf25ad64f33b59ea58b9fb06a7
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