From cf9777d58fa065c87a65b5f3953e2e80ca52ffcf Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 18 Jun 2010 08:08:01 -0600 Subject: [PATCH] Do not update tty ticket if there is no tty. --HG-- branch : 1.7 --- check.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check.c b/check.c index 9f799e50e..11119e5ff 100644 --- a/check.c +++ b/check.c @@ -205,6 +205,10 @@ update_timestamp(timestampdir, timestampfile) char *timestampdir; char *timestampfile; { + /* If using tty timestamps but we have no tty there is nothing to do. */ + if (timestampfile && !user_ttypath) + return; + if (timestamp_uid != 0) set_perms(PERM_TIMESTAMP); if (timestampfile) { -- 2.40.0