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
					
				| @ -502,7 +502,7 @@ format_number(int32_t v, char *p, int s, int maxsize, int strict) | |||||||
| #if !defined(__LONG_LONG_SUPPORTED) | #if !defined(__LONG_LONG_SUPPORTED) | ||||||
| 	limit = lshift64(cvu64(1), s*3); | 	limit = lshift64(cvu64(1), s*3); | ||||||
| #else | #else | ||||||
| 	limit = (1 << (s*3)); | 	limit = (1ull << (s*3)); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| 	/* "Strict" only permits octal values with proper termination. */ | 	/* "Strict" only permits octal values with proper termination. */ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Thomas Cort
						Thomas Cort