summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-11-08 09:54:05 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-11-08 09:54:05 +0000
commite3e51d6a50809c113cc8daa04d4c5a482cf4195f (patch)
tree1f4474216da5764b7a367f140688f9264635cbfd /security
parentNote the move of xmms-gdancer from audio to graphics in the Makefiles. (diff)
openlog(3) and closelog(3) are unsafe in PAM modules.
Notes
Notes: svn path=/head/; revision=69721
Diffstat (limited to 'security')
-rw-r--r--security/pam_pwdfile/Makefile1
-rw-r--r--security/pam_pwdfile/files/patch-aa19
2 files changed, 18 insertions, 2 deletions
diff --git a/security/pam_pwdfile/Makefile b/security/pam_pwdfile/Makefile
index e4c68331f23a..03091f4e61c8 100644
--- a/security/pam_pwdfile/Makefile
+++ b/security/pam_pwdfile/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pam_pwdfile
PORTVERSION= 0.95
+PORTREVERSION= 1
CATEGORIES= security
MASTER_SITES= http://cpbotha.net/files/pam_pwdfile/
diff --git a/security/pam_pwdfile/files/patch-aa b/security/pam_pwdfile/files/patch-aa
index edb9b4a0a520..dd2e7108be6b 100644
--- a/security/pam_pwdfile/files/patch-aa
+++ b/security/pam_pwdfile/files/patch-aa
@@ -1,5 +1,5 @@
---- pam_pwdfile.c.orig Fri Aug 31 10:00:10 2001
-+++ pam_pwdfile.c Thu Aug 30 23:35:58 2001
+--- 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.
*/
@@ -8,3 +8,18 @@
#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) {