From: Todd C. Miller Date: Sat, 24 Apr 2010 23:05:11 +0000 (-0400) Subject: Don't stash ctime in on-disk tty ticket info for now; on many (most?) X-Git-Tag: SUDO_1_8_0~698 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17220f44d6d0320e9637c3fc7a2e0ae629788269;p=sudo Don't stash ctime in on-disk tty ticket info for now; on many (most?) systems the ctime is updated when the tty is written to. Once I have a better idea of what systems do not update ctime on ttys (and have a way to test for this) the ctime stash will be conditionally re-enabled. --- diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c index 7ad06eeac..172b011c7 100644 --- a/plugins/sudoers/check.c +++ b/plugins/sudoers/check.c @@ -104,6 +104,7 @@ check_user(int validated, int mode) tty_info.dev = sb.st_dev; tty_info.ino = sb.st_ino; tty_info.rdev = sb.st_rdev; +#ifndef notyet ctim_get(&sb, &tty_info.ctime); if (stat("/", &sb) == 0) { /* @@ -116,6 +117,7 @@ check_user(int validated, int mode) tty_info.ctime.tv_usec = 0; } } +#endif } /* Always prompt for a password when -k was specified with the command. */