Problems building scheduler/auth.c on HP-UX without libpam
Albert Chin
china at foo.com
Fri May 12 17:58:41 PDT 2006
HAVE_LIBPAM is defined unconditionally, either to 0 or 1. Moreover,
libpam exists only on HP-UX 11.23. Therefore, the test in
scheduler/auth.c:
#if defined(__hpux) && defined(HAVE_LIBPAM)
is incorrect. It should be:
#if defined(__hpux) && HAVE_LIBPAM
All other uses of HAVE_LIBPAM are correct (i.e. HAVE_LIBPAM or
!HAVE_LIBPAM).
--
albert chin
-- snip snip
Index: scheduler/auth.c
===================================================================
--- scheduler/auth.c (revision 5521)
+++ scheduler/auth.c (working copy)
@@ -119,7 +119,7 @@
* Local globals...
*/
-#if defined(__hpux) && defined(HAVE_LIBPAM)
+#if defined(__hpux) && HAVE_LIBPAM
static cupsd_authdata_t *auth_data; /* Current client being authenticated */
#endif /* __hpux && HAVE_LIBPAM */
More information about the cups-devel
mailing list