diff options
author | Kevin Steves <stevesk@pobox.com> | 2000-10-14 16:10:06 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2000-10-14 16:10:06 +0000 |
commit | c368a3c93995be732f95be2afadbe4a42977b6bd (patch) | |
tree | d5102772816884eff70e02e5e2213436f97be04e | |
parent | 8d3ebb418af75277ac8ed3fccc2ab8d73c6bced3 (diff) |
comparing against buf and not hostname; openbsd tree has this
problem also.
-rw-r--r-- | session.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -749,7 +749,7 @@ do_login(Session *s) | |||
749 | time_string = ctime(&last_login_time); | 749 | time_string = ctime(&last_login_time); |
750 | if (strchr(time_string, '\n')) | 750 | if (strchr(time_string, '\n')) |
751 | *strchr(time_string, '\n') = 0; | 751 | *strchr(time_string, '\n') = 0; |
752 | if (strcmp(buf, "") == 0) | 752 | if (strcmp(hostname, "") == 0) |
753 | printf("Last login: %s\r\n", time_string); | 753 | printf("Last login: %s\r\n", time_string); |
754 | else | 754 | else |
755 | printf("Last login: %s from %s\r\n", time_string, hostname); | 755 | printf("Last login: %s from %s\r\n", time_string, hostname); |