Bug 837

Summary: get_starttime: incorrect conversions from timeval to timespec
Product: Sudo Reporter: Scott Cheloha <scottcheloha>
Component: SudoersAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: low    
Priority: low    
Version: 1.8.23   
Hardware: All   
OS: OpenBSD   
Attachments: Patch for sudoers/starttime.c

Description Scott Cheloha 2018-06-04 18:57:35 MDT
Created attachment 510 [details]
Patch for sudoers/starttime.c

These conversions in get_starttime() look off.  Shouldn't you multiply by 1000 to convert usec to nsec?
Comment 1 Todd C. Miller 2018-06-04 20:08:07 MDT
Thanks, committed as https://www.sudo.ws/repos/sudo/rev/26fa756ea623
Comment 2 Todd C. Miller 2018-08-18 13:26:54 MDT
Fixed in sudo 1.8.24, available now.