Skip to content

Commit

Permalink
* AC_CHECK_HEADERS improvements for libpam header files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen committed Jan 27, 2012
1 parent eccd960 commit a3bd795
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ pam_script.la
pam_script_la-pam_script.lo
pam_script.lo
pam-script.spec
pam-script.7
stamp-h1
*.tar.gz
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Primary Author:
Jeroen Nijhof <jnijhof@nijhofnet.nl>
Jeroen Nijhof <jeroen@jeroennijhof.nl>
Other Authors and Major Contributors:
R.K. Owen, Ph.D. <[email protected]>
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

**************************** Release 1.1 ******************************
pam-script 1.1.5 Jeroen Nijhof <[email protected]>
* AC_CHECK_HEADERS improvements for libpam header files
* Changed LOG_AUTHPRIV to LOG_AUTH for better syslog portability
* fixed an expression in function pam_sm_chauthtok() used ==
for flags instead of a binary logic bit operator, report and
fix by Mikolaj Kucharski.
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
README

PAM-script has been written by Jeroen Nijhof <jnijhof@nijhofnet.nl>
PAM-script has been written by Jeroen Nijhof <jeroen@jeroennijhof.nl>
with packaging and some modifications by R.K. Owen <[email protected]>.

Description:
Expand Down Expand Up @@ -69,5 +69,5 @@ Look at the README.examples file, which may be located under

Problem/BUGS report:
If you find any bugs or problems just mail me
Jeroen Nijhof <jnijhof@nijhofnet.nl>
Jeroen Nijhof <jeroen@jeroennijhof.nl>

10 changes: 6 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl
dnl File: configure.in
dnl Revision: $Id: configure.ac,v 1.14 2010/06/14 12:50:57 j-nijhof Exp $
dnl Created: 2007/08/17
dnl Author: Jeroen Nijhof <jnijhof@nijhofnet.nl>
dnl Author: Jeroen Nijhof <jeroen@jeroennijhof.nl>
dnl R.K. Owen <[email protected]>
dnl
dnl Process this file with autoconf to produce a configure script
Expand All @@ -14,7 +14,7 @@ AC_PREREQ(2.59)
AC_COPYRIGHT([
See the included file: COPYING for copyright information.
])
AC_INIT(pam-script, 1.1.4, [jeroen@nijhofnet.nl,[email protected]])
AC_INIT(pam-script, 1.1.5, [jeroen@jeroennijhof.nl,[email protected]])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(1.9.6)
AC_CONFIG_SRCDIR([pam_script.c])
Expand Down Expand Up @@ -57,8 +57,10 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([string.h syslog.h unistd.h])
AC_CHECK_HEADERS([security/pam_appl.h security/pam_modules.h],,
[AC_MSG_ERROR([*** Sorry, you must install the PAM development module ***])])
AC_CHECK_HEADERS([security/pam_appl.h], [],
[AC_MSG_ERROR([*** Sorry, you must install the PAM development module ***])])
AC_CHECK_HEADERS([security/pam_modules.h], [], [],
[#include <security/pam_appl.h>])

dnl --------------------------------------------------------------------
dnl Checks for typedefs, structures, and compiler characteristics.
Expand Down
2 changes: 1 addition & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

pam-script

Copyright (C) 2007-2009 Jeroen Nijhof <jnijhof@nijhofnet.nl>
Copyright (C) 2007-2009 Jeroen Nijhof <jeroen@jeroennijhof.nl>
and R.K. Owen <[email protected]> for some parts.

This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion pam-script.7.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ which can be used to modify the script behavior.
and the PAM "The System Administrators' Guide"
.SH AUTHOR
.nf
pam-script was written by Jeroen Nijhof <jnijhof@nijhofnet.nl>
pam-script was written by Jeroen Nijhof <jeroen@jeroennijhof.nl>
with some additions and modifications by R.K. Owen, Ph.D. <[email protected]>.
.PP
This manual page was written by R.K. Owen <[email protected]>,
Expand Down
4 changes: 2 additions & 2 deletions pam_script.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Written by Jeroen Nijhof <jnijhof@nijhofnet.nl> 2005/03/01
* Written by Jeroen Nijhof <jeroen@jeroennijhof.nl> 2005/03/01
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -82,7 +82,7 @@ static void pam_script_syslog(int priority, const char *format, ...) {
va_start(args, format);

#if HAVE_VSYSLOG
openlog(PACKAGE, LOG_CONS|LOG_PID, LOG_AUTHPRIV);
openlog(PACKAGE, LOG_CONS|LOG_PID, LOG_AUTH);
vsyslog(priority, format, args);
closelog();
#else
Expand Down

0 comments on commit a3bd795

Please sign in to comment.