summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2014-03-13 13:38:42 -0600
committerTodd C. Miller <Todd.Miller@courtesan.com>2014-03-13 13:38:42 -0600
commit459b4b698f3c0b694bf96abf32be89c49b82a2fc (patch)
tree3eb1f99ec4ec0a5289ab5f24fb49d519d26c3697
parentd483201b231fe288988f07015af74ebf97c59ba7 (diff)
downloadsudo-459b4b698f3c0b694bf96abf32be89c49b82a2fc.tar.gz
Fix typo/thinko that prevented "Defaults !tty_tickets" from working.
-rw-r--r--plugins/sudoers/timestamp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sudoers/timestamp.c b/plugins/sudoers/timestamp.c
index e4114192d..f9ddeada6 100644
--- a/plugins/sudoers/timestamp.c
+++ b/plugins/sudoers/timestamp.c
@@ -403,7 +403,7 @@ timestamp_status(struct passwd *pw)
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 @@ remove_timestamp(bool unlink_it)
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 */