From 4fdfd1f62a9d50298b0bb71e8bea04174af4a3ab Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 24 Jul 2019 13:36:50 +0200 Subject: Fix processing of tar mtime on 32 bit systems struct stat uses time_t to store time values. On some 32 bit systems, this may be a 32 bit integer. This patch adds a broken-out 64 bit time value to tar_header_decoded_t and makes sure to clamp the value to +/- (2^32 - 1) if required when writing it back to a struct stat. Reported-by: Matt Turner Signed-off-by: David Oberhollenzer --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1141236..870c572 100644 --- a/configure.ac +++ b/configure.ac @@ -156,6 +156,9 @@ if test "x$have_compressor" != "xyes"; then AC_MSG_ERROR([no compressor available. At lest one is required]) fi +##### additional checks ##### +AX_COMPILE_CHECK_SIZEOF(time_t) + ##### generate output ##### AC_CONFIG_HEADERS([config.h]) -- cgit v1.2.3