From: Todd C. Miller Date: Tue, 3 Aug 2010 19:16:57 +0000 (-0400) Subject: Do not produce a warning for "sudo -k" if the ticket file does not X-Git-Tag: SUDO_1_8_0~298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec5722101785a49cf949eebd533e59c8496fc941;p=sudo Do not produce a warning for "sudo -k" if the ticket file does not exist. --- diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c index a644080f3..156f051b8 100644 --- a/plugins/sudoers/check.c +++ b/plugins/sudoers/check.c @@ -641,7 +641,7 @@ remove_timestamp(int 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); } }