Bugzilla – Attachment 3160 Details for
Bug 2876
PAM_TEXT_INFO and PAM_ERROR_MSG conversation not honoured during PAM authentication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
assign ERROR_MSG/TEXT_INFO messages to kbd-int information field
bz2876.diff (text/plain), 644 bytes, created by
Damien Miller
on 2018-06-14 13:39:16 AEST
(
hide
)
Description:
assign ERROR_MSG/TEXT_INFO messages to kbd-int information field
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2018-06-14 13:39:16 AEST
Size:
644 bytes
patch
obsolete
>diff --git a/auth-pam.c b/auth-pam.c >index 45625957..b34b4086 100644 >--- a/auth-pam.c >+++ b/auth-pam.c >@@ -775,15 +775,10 @@ sshpam_query(void *ctx, char **name, char **info, > return (0); > case PAM_ERROR_MSG: > case PAM_TEXT_INFO: >- /* accumulate messages */ >- len = plen + mlen + 2; >- **prompts = xreallocarray(**prompts, 1, len); >- strlcpy(**prompts + plen, msg, len - plen); >- plen += mlen; >- strlcat(**prompts + plen, "\n", len - plen); >- plen++; >+ free(*info); >+ xasprintf(info, "%s\n", msg); > free(msg); >- break; >+ return 0; > case PAM_ACCT_EXPIRED: > case PAM_MAXTRIES: > if (type == PAM_ACCT_EXPIRED)
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 2876
: 3160 |
3610