From 89da9d1a44aea4e12bcd9ee227bfa3580262243f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 17 Feb 2023 06:27:07 +0000 Subject: Add compat boilerplate Signed-off-by: Laurent Bercot --- src/compat/pam_misc_paste_env.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/compat/pam_misc_paste_env.c (limited to 'src/compat/pam_misc_paste_env.c') diff --git a/src/compat/pam_misc_paste_env.c b/src/compat/pam_misc_paste_env.c new file mode 100644 index 0000000..b70fd58 --- /dev/null +++ b/src/compat/pam_misc_paste_env.c @@ -0,0 +1,14 @@ +/* ISC license. */ + +#include +#include + +int pam_misc_paste_env (pam_handle_t *pamh, char const *const *envp) +{ + for (; *envp ; envp++) + { + int e = pam_putenv(pamh, *envp) ; + if (e != PAM_SUCCESS) return e ; + } + return PAM_SUCCESS ; +} -- cgit v1.2.3