fe873a1c10
next round of patches - allow X forwarding over IPv4 when IPv6 sockets is not available [openssh-7.2p2-X_forward_with_disabled_ipv6.patch] - do not write PID file when not daemonizing [openssh-7.2p2-no_fork-no_pid_file.patch] - use correct options when invoking login [openssh-7.2p2-login_options.patch] - helper application for retrieving users' public keys from an LDAP server [openssh-7.2p2-ldap.patch] - allow forcing permissions over sftp [openssh-7.2p2-sftp_force_permissions.patch] - do not perform run-time checks for OpenSSL API/ABI change [openssh-7.2p2-disable-openssl-abi-check.patch] - suggest commands for cleaning known hosts file [openssh-7.2p2-host_ident.patch] - sftp home chroot patch [openssh-7.2p2-sftp_homechroot.patch] - ssh sessions auditing [openssh-7.2p2-audit.patch] - enable seccomp sandbox on additional architectures [openssh-7.2p2-additional_seccomp_archs.patch] OBS-URL: https://build.opensuse.org/request/show/432093 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=112
27 lines
798 B
Diff
27 lines
798 B
Diff
# HG changeset patch
|
|
# Parent 3007da75cc9c93ead70a4971b9057d230178511c
|
|
# set uid for functions that use it to seek in lastlog and wtmp files
|
|
# bnc#18024 (was suse #3024)
|
|
|
|
diff --git a/openssh-7.2p2/sshlogin.c b/openssh-7.2p2/sshlogin.c
|
|
--- a/openssh-7.2p2/sshlogin.c
|
|
+++ b/openssh-7.2p2/sshlogin.c
|
|
@@ -129,16 +129,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)
|