Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 107552 Details for
Bug 145839
net-mail/poppassd_ceti does not handle pam_ldap correctly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
poppassd.c-1.patch
poppassd.c-1.patch (text/plain), 1.67 KB, created by
Warren Howard
on 2007-01-20 16:31:22 UTC
(
hide
)
Description:
poppassd.c-1.patch
Filename:
MIME Type:
Creator:
Warren Howard
Created:
2007-01-20 16:31:22 UTC
Size:
1.67 KB
patch
obsolete
>--- poppassd.c 2006-11-09 20:43:14.000000000 +0530 >+++ poppassd.c 2006-11-09 20:46:34.000000000 +0530 >@@ -104,7 +104,6 @@ > void ReadFromClient (char *line) > { > char *sp; >- int i; > > bzero(line, BUFSIZE); > fgets (line, BUFSIZE-1, stdin); >@@ -143,23 +142,27 @@ > pop_state = POP_SKIPASS; > } > >- r[i].resp_retcode = 0; >- if(msg[i]->msg_style == PAM_PROMPT_ECHO_OFF || >+ r[i].resp_retcode = 0; >+ if(msg[i]->msg_style == PAM_PROMPT_ECHO_OFF || > msg[i]->msg_style == PAM_PROMPT_ECHO_ON) >- { >- switch(pop_state) { >- case POP_OLDPASS: r[i].resp = strdup(oldpass); >- break; >- case POP_NEWPASS: r[i].resp = strdup(newpass); >- break; >- case POP_SKIPASS: r[i].resp = NULL; >- break; >- default: syslog(LOG_ERR, "PAM error: too many switches (state=%d)", pop_state); >+ { >+ switch(pop_state) { >+ case POP_OLDPASS: >+ r[i].resp = strdup(oldpass); >+ break; >+ case POP_NEWPASS: >+ r[i].resp = strdup(newpass); >+ break; >+ case POP_SKIPASS: >+ r[i].resp = NULL; >+ break; >+ default: >+ syslog(LOG_ERR, "PAM error: too many switches (state=%d)", pop_state); >+ } >+ } else >+ { >+ r[i].resp = strdup(""); > } >- } else >- { >- r[i].resp = strdup(""); >- } > } > > *resp = r; >@@ -175,16 +178,8 @@ > { > char line[BUFSIZE]; > char user[BUFSIZE]; >- char emess[BUFSIZE]; >- char *slavedev; > struct passwd *pw, *getpwnam(); >- struct spwd *sp; >- int c, master; >- pid_t pid, wpid; >- int wstat; >- int ret; > pam_handle_t *pamh=NULL; >- char *item=oldpass; > > *user = *oldpass = *newpass = 0; > >@@ -269,5 +264,5 @@ > WriteToClient("200 Bye."); > closelog(); > exit(0); >- } >+} >
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 145839
:
95639
| 107552 |
107554
|
107556
|
107557
|
107559
|
671578