[PATCH] pam_wrapper: Fix the build without pam_vsyslog

vl at samba.org vl at samba.org
Thu May 4 07:37:40 UTC 2017


Hi!

Review appreciated!

Thanks, Volker
-------------- next part --------------
From ed628fce7a2f845ad0daf69fa63c9e5b9521c6b5 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 1 May 2017 17:57:27 +0200
Subject: [PATCH] pam_wrapper: Fix the build without pam_vsyslog

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 src/pam_wrapper.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pam_wrapper.c b/src/pam_wrapper.c
index d1ae075..889c79a 100644
--- a/src/pam_wrapper.c
+++ b/src/pam_wrapper.c
@@ -513,12 +513,14 @@ static void libpam_pam_vsyslog(const pam_handle_t *pamh,
 			       const char *fmt,
 			       va_list args)
 {
+#ifdef HAVE_PAM_VSYSLOG
 	pwrap_bind_symbol_libpam(pam_vsyslog);
 
 	pwrap.libpam.symbols._libpam_pam_vsyslog.f(pamh,
 						   priority,
 						   fmt,
 						   args);
+#endif
 }
 
 /*********************************************************
-- 
2.1.4



More information about the samba-technical mailing list