diff options
author | Zach van Rijn <me@zv.io> | 2022-05-04 03:42:53 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-05-06 12:37:31 -0500 |
commit | 4017de01bdc07f5f9dd91b1039612a9622f2f1b1 (patch) | |
tree | 1b361981ea1c06e1a6a5fd38dfbe9b7f2285d8f7 /system/linux-pam/musl-fix-pam_exec.patch | |
parent | b1ce3eefa7f462f4f4b7bf7465fa41dd486061c0 (diff) | |
download | packages-4017de01bdc07f5f9dd91b1039612a9622f2f1b1.tar.gz packages-4017de01bdc07f5f9dd91b1039612a9622f2f1b1.tar.bz2 packages-4017de01bdc07f5f9dd91b1039612a9622f2f1b1.tar.xz packages-4017de01bdc07f5f9dd91b1039612a9622f2f1b1.zip |
system/linux-pam: bump { 1.3.1 --> 1.5.2 }.
Diffstat (limited to 'system/linux-pam/musl-fix-pam_exec.patch')
-rw-r--r-- | system/linux-pam/musl-fix-pam_exec.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/system/linux-pam/musl-fix-pam_exec.patch b/system/linux-pam/musl-fix-pam_exec.patch deleted file mode 100644 index 52e316ac8..000000000 --- a/system/linux-pam/musl-fix-pam_exec.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- ./modules/pam_exec/pam_exec.c.orig -+++ ./modules/pam_exec/pam_exec.c -@@ -103,11 +103,14 @@ - 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 @@ - 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) - { |