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
F124997192: D10140.diff
Sat, Aug 2, 5:05 AM
Unknown Object (File)
Tue, Jul 22, 5:48 AM
Unknown Object (File)
Fri, Jul 4, 5:55 PM
Unknown Object (File)
Fri, Jul 4, 2:07 AM
Unknown Object (File)
Jun 17 2025, 11:22 PM
Unknown Object (File)
Jun 15 2025, 12:58 PM
Unknown Object (File)
Jun 11 2025, 7:55 AM
Unknown Object (File)
Jun 5 2025, 5:45 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.