diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2022-02-23 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-02-24 09:20:44 +0000 |
commit | 7c660b5fd94dd9bec54f2bc6587a2425f69be9d6 (patch) | |
tree | 59c619e9f2fb99e1b70eeb323efe2c9ad92e814d /modules/pam_pwhistory | |
parent | b95a6d48c9d4a6490ee8cf638098407ac482495a (diff) | |
download | pam-7c660b5fd94dd9bec54f2bc6587a2425f69be9d6.tar.gz pam-7c660b5fd94dd9bec54f2bc6587a2425f69be9d6.tar.bz2 pam-7c660b5fd94dd9bec54f2bc6587a2425f69be9d6.zip |
pam_exec: remove redundant strdup
In the child process, the elements of argv[] are not modified, so there
is no need to copy strings.
* modules/pam_exec/pam_exec.c (call_exec): Do not call strdup on argv[]
elements during arggv[] initialization.
Resolves: https://github.com/linux-pam/linux-pam/pull/446
Diffstat (limited to 'modules/pam_pwhistory')
0 files changed, 0 insertions, 0 deletions