libarchive: fix bad timestamp bug caused by bit shift.
The file timestamps in archives created by libarchive all had dates in the year 2038. It was caused by a bit shift in archive_write_set_format_ustar which shifted 1 instead of 1ull.
This commit is contained in:
parent
c02833ced6
commit
4a5ca363b5
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ format_number(int32_t v, char *p, int s, int maxsize, int strict)
|
|||
#if !defined(__LONG_LONG_SUPPORTED)
|
||||
limit = lshift64(cvu64(1), s*3);
|
||||
#else
|
||||
limit = (1 << (s*3));
|
||||
limit = (1ull << (s*3));
|
||||
#endif
|
||||
|
||||
/* "Strict" only permits octal values with proper termination. */
|
||||
|
|
Loading…
Reference in a new issue