summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-08-15 10:01:22 +1000
committerDamien Miller <djm@mindrot.org>2000-08-15 10:01:22 +1000
commit348c9b7a9564986000743fe379de21ae6f73f7d4 (patch)
treec12f2adbd94e7298b0cc26d5891ddea58c59ce61 /session.c
parentef7ed5eadf75a06fd9d9cd9868cd5f4072ae9e56 (diff)
- (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com>
Diffstat (limited to 'session.c')
-rw-r--r--session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/session.c b/session.c
index 388d96bb2..47787e778 100644
--- a/session.c
+++ b/session.c
@@ -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);