[Bug 3977] New: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jul 8 06:42:40 AEST 2026


https://bugzilla.mindrot.org/show_bug.cgi?id=3977

            Bug ID: 3977
           Summary: lastlog_openseek: Couldn't stat /var/log/lastlog: No
                    such file or directory
           Product: Portable OpenSSH
           Version: 10.4p1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: thomas.uhle at mailbox.tu-dresden.de

On Linux systems where OpenSSH is built with libwtmpdb enabled and
where the files /var/log/lastlog as well as /var/log/wtmp and
/var/run/utmp do no longer exist, you find the following line in syslog
every single time when you log into the machine:

  lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or
directory

The reason is that for a build with libwtmpdb the corresponding
function `int wtmpdb_get_entry(struct logininfo *li)` is still missing
in loginrec.c which would be needed to be called from function `int
getlast_entry(struct logininfo *li)` though.  I have been working on
such a function but I am not sure whether you would like to get an
e-mail with a patch on your mailing list openssh-unix-dev at mindrot.org
or if I simply should attach the patch here.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list