aboutsummaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorTom McLaughlin <tmclaugh@FreeBSD.org>2007-07-23 03:54:05 +0000
committerTom McLaughlin <tmclaugh@FreeBSD.org>2007-07-23 03:54:05 +0000
commitbc14907a9c41726aa419a617724498e7a9a46663 (patch)
tree2f26f75480a8617acd682431d9aabdcd860417a4 /security/sudo
parent71806ec82e05a6cae35e3a30c3f92749dc406dd7 (diff)
downloadports-bc14907a9c41726aa419a617724498e7a9a46663.tar.gz
ports-bc14907a9c41726aa419a617724498e7a9a46663.zip
Notes
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile1
-rw-r--r--security/sudo/files/pam.conf4
-rw-r--r--security/sudo/files/patch-auth_pam.c13
3 files changed, 17 insertions, 1 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 8c68fea3dd0d..2b3f88664be0 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sudo
PORTVERSION= 1.6.9
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
http://probsd.org/sudoftp/ \
diff --git a/security/sudo/files/pam.conf b/security/sudo/files/pam.conf
index 8741b86047c5..40070d614c46 100644
--- a/security/sudo/files/pam.conf
+++ b/security/sudo/files/pam.conf
@@ -11,7 +11,9 @@ auth include system
account include system
# session
-session include system
+# XXX: pam_lastlog causes users to appear as though they are no longer
+# logged in in system logs. This is a temporary workaround.
+#session include system
# password
password include system
diff --git a/security/sudo/files/patch-auth_pam.c b/security/sudo/files/patch-auth_pam.c
new file mode 100644
index 000000000000..ed0a9ab39b37
--- /dev/null
+++ b/security/sudo/files/patch-auth_pam.c
@@ -0,0 +1,13 @@
+--- auth/pam.c.orig 2007-06-11 21:41:12.000000000 -0400
++++ auth/pam.c 2007-07-22 21:02:46.956010000 -0400
+@@ -94,7 +94,9 @@
+ log_error(USE_ERRNO|NO_EXIT|NO_MAIL, "unable to initialize PAM");
+ return(AUTH_FATAL);
+ }
+- if (strcmp(user_tty, "unknown"))
++ if (strcmp(user_tty, "unknown") == 0)
++ (void) pam_set_item(pamh, PAM_TTY, "");
++ else
+ (void) pam_set_item(pamh, PAM_TTY, user_tty);
+
+ return(AUTH_SUCCESS);