FreeBSD Bugzilla – Attachment 8507 Details for
Bug 17756
sshd ignores .hushlogin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 594 bytes, created by
danh
on 2000-04-02 20:00:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
danh
Created:
2000-04-02 20:00:03 UTC
Size:
594 bytes
patch
obsolete
>--- sshd.c.orig Sun Apr 2 13:57:22 2000 >+++ sshd.c Sun Apr 2 14:20:33 2000 >@@ -2289,12 +2289,12 @@ > > /* Check if .hushlogin exists. */ > snprintf(line, sizeof line, "%.200s/.hushlogin", pw->pw_dir); >- quiet_login = stat(line, &st) >= 0; > #ifdef LOGIN_CAP > lc = login_getpwclass(pw); >- if (lc == NULL) >- lc = login_getclassbyname(NULL, pw); >- quiet_login = login_getcapbool(lc, "hushlogin", quiet_login); >+ quiet_login = (stat(line, &st) >= 0) >+ || login_getcapbool(lc, "hushlogin", 0); >+#else >+ quiet_login = stat(line, &st) >= 0; > #endif /* LOGIN_CAP */ > > #ifdef __FreeBSD__
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17756
: 8507