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)