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
Unknown Object (File)
Wed, May 13, 4:57 PM
Unknown Object (File)
May 8 2026, 4:47 AM
Unknown Object (File)
May 6 2026, 1:13 AM
Unknown Object (File)
Apr 27 2026, 5:59 PM
Unknown Object (File)
Apr 25 2026, 12:18 AM
Unknown Object (File)
Apr 22 2026, 5:33 AM
Unknown Object (File)
Apr 18 2026, 3:28 PM
Unknown Object (File)
Apr 18 2026, 5:43 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.