From b89980ac6e1840a18d7a1936af9b27934c13c33f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 11 May 2010 13:08:41 -0400 Subject: [PATCH] Fix timestamp removal with -k/-K --- plugins/sudoers/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c index 90902de97..a10a5d954 100644 --- a/plugins/sudoers/check.c +++ b/plugins/sudoers/check.c @@ -647,7 +647,7 @@ remove_timestamp(int remove) status = timestamp_status(timestampdir, timestampfile, user_name, TS_REMOVE); - if (status == TS_OLD || status == TS_CURRENT) { + if (status != TS_MISSING && status != TS_ERROR) { path = timestampfile ? timestampfile : timestampdir; if (remove) { if (timestampfile)