]> granicus.if.org Git - sudo/commitdiff
Don't stash ctime in on-disk tty ticket info for now; on many (most?)
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 24 Apr 2010 23:05:11 +0000 (19:05 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 24 Apr 2010 23:05:11 +0000 (19:05 -0400)
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.

plugins/sudoers/check.c

index 7ad06eeacb32ed1fef22d2a9f40de3172f12288f..172b011c756f63c2bd337d3b66c56e135953d2f4 100644 (file)
@@ -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. */