Bug 47300 - Preserve timestamps under files/
Preserve timestamps under files/
Status: NEEDMOREINFO
Product: USI
Classification: Unclassified
Component: univention-support-info
unspecified
Other Linux
: P5 normal
: ---
Assigned To: Nico Stöckigt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-04 09:08 CEST by Christian Völker
Modified: 2018-07-16 14:00 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Völker univentionstaff 2018-07-04 09:08:06 CEST
When collecting files/ we should keep the original timestamps in the archive so when analyzing we can see the original time of the file from customers server ("I did not change anything"...)

According to Python library it should keep times (somehow) but in my test all extracted files are set to time when usi ran.

https://docs.python.org/2/library/tarfile.html
Comment 1 Nico Stöckigt univentionstaff 2018-07-16 13:59:47 CEST
I added '--atime-preserve' to the tar command when extracting the usi, however the mtime is - for what means soever - intentionally set in the usi script when collecting.