From: Todd C. Miller Date: Tue, 3 Aug 2010 19:14:55 +0000 (-0400) Subject: Do not produce a warning for "sudo -k" if the ticket file does not X-Git-Tag: SUDO_1_7_5~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71cf8e7d00061ef4997a2a6f89c955ff367d7b19;p=sudo Do not produce a warning for "sudo -k" if the ticket file does not exist. --HG-- branch : 1.7 --- 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); } }