diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-05-08 20:33:05 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-05-08 20:33:05 +0000 |
commit | 97c677d4f04b8f8938c893656f667a29527f4a0f (patch) | |
tree | 17e28513452c08b9a5a026e19b64ae8eae09ec59 /sshlogin.c | |
parent | 387c472660ef173c2e469e70eb1a25d47f6e8887 (diff) |
- (bal) UseLogin patch for Solaris/UNICOS. Patch by Wayne Davison
<wayne@blorf.net>
Diffstat (limited to 'sshlogin.c')
-rw-r--r-- | sshlogin.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sshlogin.c b/sshlogin.c index 1d9c031c4..b7558b9e9 100644 --- a/sshlogin.c +++ b/sshlogin.c | |||
@@ -77,6 +77,20 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, | |||
77 | login_free_entry(li); | 77 | login_free_entry(li); |
78 | } | 78 | } |
79 | 79 | ||
80 | #ifdef LOGIN_NEEDS_UTMPX | ||
81 | void | ||
82 | record_utmp_only(pid_t pid, const char *ttyname, const char *user, | ||
83 | const char *host, struct sockaddr * addr) | ||
84 | { | ||
85 | struct logininfo *li; | ||
86 | |||
87 | li = login_alloc_entry(pid, user, host, ttyname); | ||
88 | login_set_addr(li, addr, sizeof(struct sockaddr)); | ||
89 | login_utmp_only(li); | ||
90 | login_free_entry(li); | ||
91 | } | ||
92 | #endif | ||
93 | |||
80 | /* Records that the user has logged out. */ | 94 | /* Records that the user has logged out. */ |
81 | 95 | ||
82 | void | 96 | void |