- (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com>
diff --git a/session.c b/session.c
index 388d96b..47787e7 100644
--- a/session.c
+++ b/session.c
@@ -601,8 +601,9 @@
}
}
/* 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);