[PATCH] pam_wrapper: Add PAM_STRERROR_CONST configure check
Jeremy Allison
jra at samba.org
Thu May 4 08:10:57 UTC 2017
On Thu, May 04, 2017 at 09:39:42AM +0200, Volker Lendecke via samba-technical wrote:
> Hi!
>
> This is against the Samba repo, the pam_wrapper repo does not have
> wscript.
>
> Review appreciated!
LGTM. Pushed !
> From 031a0e1fbb303bc222832478ba127e1b78898a07 Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Mon, 1 May 2017 17:56:50 +0200
> Subject: [PATCH] pam_wrapper: Add PAM_STRERROR_CONST configure check
>
> Signed-off-by: Volker Lendecke <vl at samba.org>
> ---
> lib/pam_wrapper/wscript | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/lib/pam_wrapper/wscript b/lib/pam_wrapper/wscript
> index 87181c3..aacd1d7 100644
> --- a/lib/pam_wrapper/wscript
> +++ b/lib/pam_wrapper/wscript
> @@ -80,6 +80,13 @@ def configure(conf):
> 'int pam_prompt(const pam_handle_t *_pamh, int _style, char **_resp, const char *_fmt, ...)',
> define='HAVE_PAM_PROMPT_CONST', headers='stdio.h sys/types.h security/pam_appl.h security/pam_modules.h')
>
> + conf.CHECK_C_PROTOTYPE(
> + 'pam_strerror',
> + 'const char *pam_strerror(const pam_handle_t *pamh, int errnum)',
> + define='HAVE_PAM_STRERROR_CONST',
> + headers='''stdio.h sys/types.h security/pam_appl.h
> + security/pam_modules.h''')
> +
> # Find the absolute path to libpam.so.0
> libpam_path = find_library(['libpam.so.0', 'libpam.so'], conf.env.STANDARD_LIBPATH)
> conf.DEFINE('PAM_LIBRARY', ('"%s"' % libpam_path ))
> --
> 2.1.4
>
More information about the samba-technical
mailing list