summaryrefslogtreecommitdiff
path: root/system/linux-pam/musl-fix-pam_exec.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-15 20:54:01 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-15 20:54:01 -0500
commit79ef663df99da8741bc47142bcb95dc4dec68db3 (patch)
treeb87c74fdc59146f44a1704115c122ced78d51bb1 /system/linux-pam/musl-fix-pam_exec.patch
parent21fb7168e62542ec26e32061f2bf1539ceb60b95 (diff)
downloadpackages-79ef663df99da8741bc47142bcb95dc4dec68db3.tar.gz
packages-79ef663df99da8741bc47142bcb95dc4dec68db3.tar.bz2
packages-79ef663df99da8741bc47142bcb95dc4dec68db3.tar.xz
packages-79ef663df99da8741bc47142bcb95dc4dec68db3.zip
system/linux-pam: [PD] fix, bump to 1.3.1, use utmpx
Diffstat (limited to 'system/linux-pam/musl-fix-pam_exec.patch')
-rw-r--r--system/linux-pam/musl-fix-pam_exec.patch13
1 files changed, 7 insertions, 6 deletions
diff --git a/system/linux-pam/musl-fix-pam_exec.patch b/system/linux-pam/musl-fix-pam_exec.patch
index b6b999fae..52e316ac8 100644
--- a/system/linux-pam/musl-fix-pam_exec.patch
+++ b/system/linux-pam/musl-fix-pam_exec.patch
@@ -15,13 +15,14 @@
if (argc < 1) {
pam_syslog (pamh, LOG_ERR,
"This module needs at least one argument");
-@@ -178,11 +181,11 @@
+@@ -180,12 +183,12 @@
+ 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);
}
-
- 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);