From 32b897ac67fea808a20a184e81fe632b1fe57789 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 1 Feb 2014 06:11:29 -0700 Subject: [PATCH] Restore warning when sudoers is unable to update the time stamp file. --- plugins/sudoers/timestamp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/sudoers/timestamp.c b/plugins/sudoers/timestamp.c index eed1e4f5d..2d643dff8 100644 --- a/plugins/sudoers/timestamp.c +++ b/plugins/sudoers/timestamp.c @@ -180,6 +180,9 @@ found_it: if ((size_t)nwritten == sizeof(struct timestamp_entry)) debug_return_bool(true); + log_warning(nwritten == -1 ? USE_ERRNO : 0, + N_("unable to write to %s"), timestamp_file); + /* Truncate on partial write to be safe. */ if (nwritten > 0 && old_eof != (off_t)-1) { sudo_debug_printf(SUDO_DEBUG_DEBUG|SUDO_DEBUG_LINENO,