From 71cf8e7d00061ef4997a2a6f89c955ff367d7b19 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 3 Aug 2010 15:14:55 -0400 Subject: [PATCH] Do not produce a warning for "sudo -k" if the ticket file does not exist. --HG-- branch : 1.7 --- check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.c b/check.c index e35246f9d..7fd722406 100644 --- 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); } } -- 2.40.0