diff options
author | Damien Miller <djm@mindrot.org> | 2000-08-15 10:01:22 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-08-15 10:01:22 +1000 |
commit | 348c9b7a9564986000743fe379de21ae6f73f7d4 (patch) | |
tree | c12f2adbd94e7298b0cc26d5891ddea58c59ce61 /session.c | |
parent | ef7ed5eadf75a06fd9d9cd9868cd5f4072ae9e56 (diff) |
- (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com>
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -601,8 +601,9 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw) | |||
601 | } | 601 | } |
602 | } | 602 | } |
603 | /* Record that there was a login on that terminal. */ | 603 | /* Record that there was a login on that terminal. */ |
604 | record_login(pid, s->tty, pw->pw_name, pw->pw_uid, hostname, | 604 | if (!options.use_login || command != NULL) |
605 | (struct sockaddr *)&from); | 605 | record_login(pid, s->tty, pw->pw_name, pw->pw_uid, |
606 | hostname, (struct sockaddr *)&from); | ||
606 | 607 | ||
607 | /* Check if .hushlogin exists. */ | 608 | /* Check if .hushlogin exists. */ |
608 | snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir); | 609 | snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir); |