mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
get_remote_name_or_ip inside LOGIN_NEEDS_UTMPX
Apply the same get_remote_name_or_ip -> session_get_remote_name_or_ip change as commit 95767262 to the code inside #ifdef LOGIN_NEEDS_UTMPX. Fixes build on AIX.
This commit is contained in:
parent
009891afc8
commit
aa37768f17
@ -769,6 +769,7 @@ do_exec_pty(Session *s, const char *command)
|
|||||||
static void
|
static void
|
||||||
do_pre_login(Session *s)
|
do_pre_login(Session *s)
|
||||||
{
|
{
|
||||||
|
struct ssh *ssh = active_state; /* XXX */
|
||||||
socklen_t fromlen;
|
socklen_t fromlen;
|
||||||
struct sockaddr_storage from;
|
struct sockaddr_storage from;
|
||||||
pid_t pid = getpid();
|
pid_t pid = getpid();
|
||||||
@ -788,7 +789,7 @@ do_pre_login(Session *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
record_utmp_only(pid, s->tty, s->pw->pw_name,
|
record_utmp_only(pid, s->tty, s->pw->pw_name,
|
||||||
get_remote_name_or_ip(utmp_len, options.use_dns),
|
session_get_remote_name_or_ip(ssh, utmp_len, options.use_dns),
|
||||||
(struct sockaddr *)&from, fromlen);
|
(struct sockaddr *)&from, fromlen);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user