]> granicus.if.org Git - sudo/commitdiff
Fix timestamp removal with -k/-K
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 11 May 2010 17:08:41 +0000 (13:08 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 11 May 2010 17:08:41 +0000 (13:08 -0400)
plugins/sudoers/check.c

index 90902de97499431a3b871c8c67d667e161c26ec2..a10a5d954fb578d6ca8222e2287e92c09ae86aeb 100644 (file)
@@ -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)