Page MenuHomeFreeBSD

diff: Fix mtime of file1 in -u/-c header line.
ClosedPublic

Authored by jilles on Mar 25 2017, 10:10 PM.
Tags
None
Referenced Files
F166918216: D10140.id26670.diff
Mon, Aug 17, 6:29 PM
Unknown Object (File)
Sun, Aug 16, 9:14 PM
Unknown Object (File)
Sat, Aug 15, 7:59 PM
Unknown Object (File)
Sat, Aug 15, 7:46 PM
Unknown Object (File)
Thu, Aug 13, 8:09 PM
Unknown Object (File)
Wed, Aug 12, 12:25 PM
Unknown Object (File)
Wed, Aug 12, 12:23 PM
Unknown Object (File)
Thu, Jul 23, 12:57 AM
Subscribers

Details

Summary

Calling localtime() a second time overwrites the result of the first call.
Use localtime_r() instead.

PR: 218018

Test Plan

A new test case is included.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fixing the nanoseconds (also PR 218018) will be a separate diff.

This revision is now accepted and ready to land.Mar 25 2017, 11:48 PM
This revision was automatically updated to reflect the committed changes.