Todd C. Miller
1e1ef61902
Add SPDX-License-Identifier to files.
2019-04-29 07:21:51 -06:00
Todd C. Miller
0766e0c647
Better comment about EOVERFLOW and pstat_getproc().
...
Also remove some useless casts.
2019-03-06 20:15:11 -07:00
Todd C. Miller
985600e7f0
Minor snprintf() usage tweaks:
...
1) don't assume snprintf() returns -1 on error, check for <0
2) when comparing return value of sizeof(foo), cast the sizeof, not the len
3) cast return value to void in cases where snprintf cannot fail
2019-01-20 07:49:48 -07:00
Todd C. Miller
6c3d20cb41
Convert PVS-Studio comment to ANSI C.
2018-10-26 08:39:09 -06:00
Todd C. Miller
64e5d34c57
Add comments in .c files so PVS-Studio will check them.
2018-10-21 08:46:05 -06:00
Todd C. Miller
92975ee7c7
Fix get_starttime() on HP-UX.
2018-08-17 15:58:17 -06:00
Todd C. Miller
ec2dae8104
Fix conversion of usec to nsec; from Scott Cheloha
2018-06-04 20:00:41 -06:00
Todd C. Miller
f984de1ba9
Use correct defines when checking for sysctl kinfo_proc support.
2018-03-06 12:05:07 -07:00
Todd C. Miller
217e0a9b4b
Less confusing sysctl checks for kinfo_proc.
2018-03-05 17:35:02 -07:00
Todd C. Miller
de2f455d3e
Support start time on macOS and 4.4BSD
2017-12-17 07:40:21 -07:00
Todd C. Miller
b78296197d
Fix compilation error on FreeBSD
2017-12-16 20:46:58 -07:00
Todd C. Miller
79caf1e68d
Fix debug_decl(), it should be SUDOERS_DEBUG_UTIL
...
Add debugging for the successful case
For Linux, don't NUL out *ep before parsing with strtoull().
* * *
Add missing debug info for the System V /proc version.
2017-12-16 14:50:14 -07:00
Todd C. Miller
1709dc7f77
In the timestamp record, include the start time of the terminal
...
session leader for tty-based timestamps or the start time of the
parent process for ppid-based timestamps. Idea from Duncan Overbruck.
2017-12-16 05:53:05 -07:00