PolicyKit/pam-polkit-console pam-polkit-console.c,1.1,1.2
David Zeuthen
david at kemper.freedesktop.org
Tue Jun 6 04:55:52 PDT 2006
Update of /cvs/hal/PolicyKit/pam-polkit-console
In directory kemper:/tmp/cvs-serv22113/pam-polkit-console
Modified Files:
pam-polkit-console.c
Log Message:
2006-06-06 David Zeuthen <davidz at redhat.com>
Patch from Frederic Peters <fpeters at entrouvert.com>.
http://jhbuild.bxlug.be/builds/2006-06-06-0000/logs/PolicyKit/#build
shows a error when building newest PolicyKit with Debian PAM
libraries.
Attached patch adds new configure checks; pam-polkit-console.c may
need alternate behaviour if pam_vsyslog is missing (using straight
vsyslog?).
* configure.in,
* pam-polkit-console/pam-polkit-console.c: (_pam_log):
* doc/TODO:
Index: pam-polkit-console.c
===================================================================
RCS file: /cvs/hal/PolicyKit/pam-polkit-console/pam-polkit-console.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- pam-polkit-console.c 5 Jun 2006 23:39:00 -0000 1.1
+++ pam-polkit-console.c 6 Jun 2006 11:55:50 -0000 1.2
@@ -37,11 +37,16 @@
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
+#include <stdarg.h>
#include <security/pam_modules.h>
#include <security/_pam_macros.h>
+#ifdef HAVE_PAM_MODUTIL_H
#include <security/pam_modutil.h>
+#endif
+#ifdef HAVE_PAM_EXT_H
#include <security/pam_ext.h>
+#endif
#ifndef FALSE
#define FALSE 0
@@ -64,7 +69,9 @@
return;
va_start (args, format);
+#ifdef HAVE_PAM_VSYSLOG
pam_vsyslog (pamh, err, format, args);
+#endif
closelog ();
}
More information about the hal-commit
mailing list