From: Todd C. Miller Date: Thu, 28 Feb 2013 14:25:10 +0000 (-0500) Subject: Add back gettimeofday() call inadvertantly removed in e1abb9810a83 X-Git-Tag: SUDO_1_8_7~1^2~194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa93dede3945626c0a888d80dfcd333ab623e7f8;p=sudo Add back gettimeofday() call inadvertantly removed in e1abb9810a83 --- 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,