freebsd-ports/security/pam_pwdfile/files/patch-aa

25 lines
526 B
Text

--- pam_pwdfile.c.orig Sat Jul 14 23:50:21 2001
+++ pam_pwdfile.c Fri Nov 8 11:25:49 2002
@@ -42,7 +42,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <features.h>
#include <syslog.h>
#include <stdarg.h>
#include <stdio.h>
@@ -85,10 +84,14 @@
va_list args;
va_start(args, format);
+#ifndef __FreeBSD__
openlog("pam_pwdfile", LOG_CONS|LOG_PID, LOG_AUTH);
+#endif
vsyslog(err, format, args);
va_end(args);
+#ifndef __FreeBSD__
closelog();
+#endif
}
static int lock_fd(int fd) {