Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 578482 Details for
Bug 687234
sys-libs/pam-1.3.1-r1: Fails to build against sys-libs/musl due to undefined 'strdupa' (glibc-specific extension)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix pam_exec
pam-1.3.1-fix-pam-exec.patch (text/plain), 1.29 KB, created by
Jory A. Pratt
on 2019-06-03 00:27:12 UTC
(
hide
)
Description:
fix pam_exec
Filename:
MIME Type:
Creator:
Jory A. Pratt
Created:
2019-06-03 00:27:12 UTC
Size:
1.29 KB
patch
obsolete
>From a43725b6f6a9748e5fdb91384bce360eab36ebde Mon Sep 17 00:00:00 2001 >From: >Date: Wed, 10 Apr 2019 00:45:01 -0500 >Subject: [PATCH 1/3] Fix pam exec on musl > >--- > modules/pam_exec/pam_exec.c | 9 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/modules/pam_exec/pam_exec.c b/modules/pam_exec/pam_exec.c >index 52dc681..3f70ea1 100644 >--- a/modules/pam_exec/pam_exec.c >+++ b/modules/pam_exec/pam_exec.c >@@ -103,11 +103,14 @@ call_exec (const char *pam_type, pam_handle_t *pamh, > int optargc; > const char *logfile = NULL; > const char *authtok = NULL; >+ char authtok_buf[PAM_MAX_RESP_SIZE+1]; >+ > pid_t pid; > int fds[2]; > int stdout_fds[2]; > FILE *stdout_file = NULL; > >+ memset(authtok_buf, 0, sizeof(authtok_buf)); > if (argc < 1) { > pam_syslog (pamh, LOG_ERR, > "This module needs at least one argument"); >@@ -180,12 +183,12 @@ call_exec (const char *pam_type, pam_handle_t *pamh, > if (resp) > { > pam_set_item (pamh, PAM_AUTHTOK, resp); >- authtok = strndupa (resp, PAM_MAX_RESP_SIZE); >+ authtok = strncpy(authtok_buf, resp, sizeof(authtok_buf)); > _pam_drop (resp); > } > } > else >- authtok = strndupa (void_pass, PAM_MAX_RESP_SIZE); >+ authtok = strncpy(authtok_buf, void_pass, sizeof(authtok_buf)); > > if (pipe(fds) != 0) > { >-- >2.21.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 687234
:
578474
|
578476
|
578478
| 578482 |
578484
|
578486
|
578502