mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 21:07:55 +00:00
Add back gettimeofday() call inadvertantly removed in e1abb9810a83
This commit is contained in:
parent
e30b0bd121
commit
fa93dede39
@ -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);
|
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",
|
fprintf(io_log_files[IOFD_LOG].fd.f, "%ld:%s:%s:%s:%s:%d:%d\n%s\n%s",
|
||||||
(long)last_time.tv_sec,
|
(long)last_time.tv_sec,
|
||||||
details.user ? details.user : "unknown", details.runas_pw->pw_name,
|
details.user ? details.user : "unknown", details.runas_pw->pw_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user