|
Lines 1923-1930
Link Here
|
| 1923 |
debug("session_pty_cleanup: session %d release %s", s->self, s->tty); |
1923 |
debug("session_pty_cleanup: session %d release %s", s->self, s->tty); |
| 1924 |
|
1924 |
|
| 1925 |
/* Record that the user has logged out. */ |
1925 |
/* Record that the user has logged out. */ |
| 1926 |
if (s->pid != 0) |
1926 |
if (s->pid != 0) { |
|
|
1927 |
void (*authlog) (const char *fmt,...) = verbose; |
| 1927 |
record_logout(s->pid, s->tty, s->pw->pw_name); |
1928 |
record_logout(s->pid, s->tty, s->pw->pw_name); |
|
|
1929 |
authlog = logit; |
| 1930 |
authlog("User %s from ip %.50s logged out",s->pw->pw_name,get_remote_ipaddr()); |
| 1931 |
} |
| 1928 |
|
1932 |
|
| 1929 |
/* Release the pseudo-tty. */ |
1933 |
/* Release the pseudo-tty. */ |
| 1930 |
if (getuid() == 0) |
1934 |
if (getuid() == 0) |