Bug 7089 - ccache should use utimes() over utime()
Summary: ccache should use utimes() over utime()
Status: CLOSED FIXED
Alias: None
Product: ccache
Classification: Unclassified
Component: ccache (show other bugs)
Version: 2.4
Hardware: Other Linux
: P3 normal
Target Milestone: 3.0
Assignee: Joel Rosdahl
QA Contact: Joel Rosdahl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 12:25 UTC by Mike Frysinger
Modified: 2010-07-09 04:15 UTC (History)
0 users

See Also:


Attachments
ccache-2.4-utimes.patch (3.19 KB, patch)
2010-02-02 12:25 UTC, Mike Frysinger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2010-02-02 12:25:21 UTC
utime(...,NULL) in some cases may cause truncation of sub-second portions of timestamps. If utimes(...,NULL) is available, use it instead to avoid this problem.

patch by Robin H. Johnson <robbat2@gentoo.org>
Comment 1 Mike Frysinger 2010-02-02 12:25:36 UTC
Created attachment 5256 [details]
ccache-2.4-utimes.patch
Comment 2 Joel Rosdahl 2010-02-20 03:07:22 UTC
This patch was committed as 237bee66157f59be586fa1f558804c92860c0ead and will show up in the 3.0 release.