File openssh-7.6p1-lastlog.patch of Package openssh.21986
# HG changeset patch
# Parent b26f93cf21e4cfff1212ad2e61696ad099cfaf5e
# set uid for functions that use it to seek in lastlog and wtmp files
# bnc#18024 (was suse #3024)
Index: openssh-7.6p1/sshlogin.c
===================================================================
--- openssh-7.6p1.orig/sshlogin.c 2019-03-12 14:34:00.671392557 +0100
+++ openssh-7.6p1/sshlogin.c 2019-03-12 14:34:15.883477293 +0100
@@ -134,6 +134,7 @@ record_login(pid_t pid, const char *tty,
li = login_alloc_entry(pid, user, host, tty);
login_set_addr(li, addr, addrlen);
+ li->uid = uid;
login_login(li);
login_free_entry(li);
}