From 348c9b7a9564986000743fe379de21ae6f73f7d4 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 15 Aug 2000 10:01:22 +1000 Subject: - (djm) More SunOS 4.1.x fixes from Nate Itkin --- session.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'session.c') 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) } } /* Record that there was a login on that terminal. */ - record_login(pid, s->tty, pw->pw_name, pw->pw_uid, hostname, - (struct sockaddr *)&from); + if (!options.use_login || command != NULL) + record_login(pid, s->tty, pw->pw_name, pw->pw_uid, + hostname, (struct sockaddr *)&from); /* Check if .hushlogin exists. */ snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir); -- cgit v1.2.3