PrintLastLog option is not honored

Christian Kurz shorty at debian.org
Thu Dec 28 07:51:35 EST 2000


Hi,

here's another bug report against openssh with a patch included (from
the same person who submitted the bug report). Would you please apply
it? Thanks!

> The Debian package of ssh includes patches to recognize a 'PrintLastLog'
> option which can be used to disable the automatic display of the last
> login time.  (This is often handled by PAM.)  The option is scanned and
> converted to a flag variable, but that flag variable is never examined,
> so the patch does no good.

|--- openssh-2.2.0p1/session.c   Tue Aug 29 15:21:22 2000
|+++ openssh-2.2.0p1z/session.c  Mon Sep 18 09:55:01 2000
|@@ -686,7 +686,7 @@
|         */
|        last_login_time = get_last_login_time(pw->pw_uid, pw->pw_name,
|            buf, sizeof(buf));
|-       if (last_login_time != 0) {
|+       if (last_login_time != 0 && options.print_lastlog) {
|                time_string = ctime(&last_login_time);
|                if (strchr(time_string, '\n'))
|                        *strchr(time_string, '\n') = 0;

Ciao
     Christian
-- 
          Debian Developer and Quality Assurance Team Member
    1024/26CC7853 31E6 A8CA 68FC 284F 7D16  63EC A9E6 67FF 26CC 7853
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 242 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20001227/976b1a34/attachment.bin 


More information about the openssh-unix-dev mailing list