From fa93dede3945626c0a888d80dfcd333ab623e7f8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 28 Feb 2013 09:25:10 -0500 Subject: [PATCH] Add back gettimeofday() call inadvertantly removed in e1abb9810a83 --- plugins/sudoers/iolog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index 75d107882..b9f2fc076 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -590,6 +590,7 @@ sudoers_io_open(unsigned int version, sudo_conv_t conversation, open_io_fd(pathbuf, len, &io_log_files[i], i ? iolog_compress : false); } + gettimeofday(&last_time, NULL); fprintf(io_log_files[IOFD_LOG].fd.f, "%ld:%s:%s:%s:%s:%d:%d\n%s\n%s", (long)last_time.tv_sec, details.user ? details.user : "unknown", details.runas_pw->pw_name, -- 2.50.1