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
F133523268: D10140.id26660.diff
Sun, Oct 26, 9:46 AM
F133523265: D10140.id.diff
Sun, Oct 26, 9:46 AM
F133523255: D10140.id26670.diff
Sun, Oct 26, 9:46 AM
F133482726: D10140.diff
Sun, Oct 26, 3:09 AM
Unknown Object (File)
Fri, Oct 24, 7:16 AM
Unknown Object (File)
Sun, Oct 5, 7:01 AM
Unknown Object (File)
Sat, Oct 4, 6:08 AM
Unknown Object (File)
Fri, Oct 3, 10:36 PM
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.