FreeBSD Bugzilla – Attachment 13790 Details for
Bug 26093
pam_unix rejects authenticating accounts with empty passwords
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 497 bytes, created by
voland
on 2001-03-26 15:00:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
voland
Created:
2001-03-26 15:00:02 UTC
Size:
497 bytes
patch
obsolete
>--- pam_unix.c.orig Mon Mar 26 15:43:26 2001 >+++ pam_unix.c Mon Mar 26 15:23:41 2001 >@@ -69,8 +69,13 @@ > return retval; > if ((pwd = getpwnam(user)) != NULL) { > encrypted = crypt(password, pwd->pw_passwd); >- if (password[0] == '\0' && pwd->pw_passwd[0] != '\0') >+ if (password[0] == '\0') { >+ if (pwd->pw_passwd[0] != '\0') { > encrypted = ":"; >+ } else { >+ encrypted = ""; >+ } >+ } > > retval = strcmp(encrypted, pwd->pw_passwd) == 0 ? > PAM_SUCCESS : PAM_AUTH_ERR;
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 26093
: 13790