Add back gettimeofday() call inadvertantly removed in e1abb9810a83
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 28 Feb 2013 14:25:10 +0000 (09:25 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 28 Feb 2013 14:25:10 +0000 (09:25 -0500)
plugins/sudoers/iolog.c

index 75d1078823b1fc1fce831c8e6da2be0333b874ec..b9f2fc07676ca9fb020d30525ba74b668de2c68c 100644 (file)
@@ -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,