6cd875acfc
- spec file cleanup (don't pointelssly build whole OpenSSH) - spec file and patch cleanup * removing obsoleted auditing patch (openssh-%{version}-audit.patch) - added patches from SLE * GSSAPI key exchange * FIPS enablement (currently disabled) * small bugfixes - split the LDAP helper into a separate package: openssh-akc-ldap OBS-URL: https://build.opensuse.org/request/show/199679 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=55
25 lines
726 B
Diff
25 lines
726 B
Diff
# set uid for functions that use it to seek in lastlog and wtmp files
|
|
# bnc#18024 (was suse #3024)
|
|
|
|
diff --git a/openssh-6.2p2/sshlogin.c b/openssh-6.2p2/sshlogin.c
|
|
--- a/openssh-6.2p2/sshlogin.c
|
|
+++ b/openssh-6.2p2/sshlogin.c
|
|
@@ -128,16 +128,17 @@ record_login(pid_t pid, const char *tty,
|
|
{
|
|
struct logininfo *li;
|
|
|
|
/* save previous login details before writing new */
|
|
store_lastlog_message(user, uid);
|
|
|
|
li = login_alloc_entry(pid, user, host, tty);
|
|
login_set_addr(li, addr, addrlen);
|
|
+ li->uid = uid;
|
|
login_login(li);
|
|
login_free_entry(li);
|
|
}
|
|
|
|
#ifdef LOGIN_NEEDS_UTMPX
|
|
void
|
|
record_utmp_only(pid_t pid, const char *ttyname, const char *user,
|
|
const char *host, struct sockaddr *addr, socklen_t addrlen)
|