Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2004 01:50:15 -0800 (PST)
From:      Eugene Grosbein <eugen@kuzbass.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/61354: login(1) prints last login time for 'hushlogin'  configuration
Message-ID:  <200401140950.i0E9oFFB039624@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/61354; it has been noted by GNATS.

From: Eugene Grosbein <eugen@kuzbass.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/61354: login(1) prints last login time for 'hushlogin' 
 configuration
Date: Wed, 14 Jan 2004 16:42:39 +0700

 Hi!
 
 Here is a patch:
 
 --- login.c.orig        Wed Jan 14 16:21:58 2004
 +++ login.c     Wed Jan 14 16:37:16 2004
 @@ -356,8 +356,6 @@
         lc = login_getpwclass(pwd);
  
         quietlog = login_getcapbool(lc, "hushlogin", 0);
 -       if (!quietlog)
 -               pam_silent = 0;
  
         /*
          * Switching needed for NFS with root access disabled.
 @@ -385,6 +383,8 @@
         (void)setegid(egid);
         if (!quietlog)
                 quietlog = access(_PATH_HUSHLOGIN, F_OK) == 0;
 +       if (!quietlog)
 +               pam_silent = 0;
  
         shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
         if (*pwd->pw_shell == '\0')
 
 
 Eugene Grosbein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401140950.i0E9oFFB039624>