[sudo-users] 1.8.10: tty_tickets broken?

Todd C. Miller Todd.Miller at courtesan.com
Thu Mar 13 13:38:00 MDT 2014


That's a bug.  The following diff should fix it.

 - todd

diff -r b4a92803f733 plugins/sudoers/timestamp.c
--- a/plugins/sudoers/timestamp.c	Thu Mar 13 08:21:04 2014 -0600
+++ b/plugins/sudoers/timestamp.c	Thu Mar 13 13:37:29 2014 -0600
@@ -403,7 +403,7 @@
 	timestamp_key.flags = TS_ANYUID;
     }
     timestamp_key.sid = user_sid;
-    if (def_timestampdir) {
+    if (def_tty_tickets) {
 	if (user_ttypath != NULL && stat(user_ttypath, &sb) == 0) {
 	    /* tty-based time stamp */
 	    timestamp_key.type = TS_TTY;
@@ -537,7 +537,7 @@
     timestamp_key.size = sizeof(timestamp_key);
     timestamp_key.type = TS_GLOBAL;	/* may be overriden below */
     timestamp_key.flags = TS_ANYUID;
-    if (def_timestampdir) {
+    if (def_tty_tickets) {
 	struct stat sb;
 	if (user_ttypath != NULL && stat(user_ttypath, &sb) == 0) {
 	    /* tty-based time stamp */


More information about the sudo-users mailing list