]> granicus.if.org Git - sudo/commitdiff
Do not produce a warning for "sudo -k" if the ticket file does not
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 3 Aug 2010 19:14:55 +0000 (15:14 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 3 Aug 2010 19:14:55 +0000 (15:14 -0400)
exist.

--HG--
branch : 1.7

check.c

diff --git a/check.c b/check.c
index e35246f9d316264e579c630d6c44bb7af92bc601..7fd722406b2988236fbb140131c91b21e88cd73f 100644 (file)
--- a/check.c
+++ b/check.c
@@ -647,7 +647,7 @@ remove_timestamp(remove)
            }
        } else {
            timevalclear(&tv);
-           if (touch(-1, path, &tv) == -1)
+           if (touch(-1, path, &tv) == -1 && errno != ENOENT)
                error(1, "can't reset %s to Epoch", path);
        }
     }