We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3297ffa commit 45e3c0dCopy full SHA for 45e3c0d
1 file changed
plugins/sudoers/timestamp.c
@@ -481,6 +481,8 @@ timestamp_open(const struct sudoers_context *ctx)
481
/* Already logged set_perms/restore_perms error. */
482
goto bad;
483
}
484
+ sudo_debug_printf(SUDO_DEBUG_INFO, "%s: opened time stamp file %s",
485
+ __func__, fname);
486
487
/* Remove time stamp file if its mtime predates boot time. */
488
if (tries == 1 && fstat(fd, &sb) == 0) {
@@ -521,6 +523,8 @@ timestamp_open(const struct sudoers_context *ctx)
521
523
close(dfd);
522
524
debug_return_ptr(cookie);
525
bad:
526
+ sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO,
527
+ "%s: unable to open time stamp file %s", __func__, fname);
528
if (dfd != -1)
529
530
if (fd >= 0)
0 commit comments