diff options
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r-- | archival/bbunzip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index f81aab81f..22a0fd189 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c | |||
@@ -105,10 +105,12 @@ int FAST_FUNC bbunpack(char **argv, | |||
105 | if (status >= 0) { | 105 | if (status >= 0) { |
106 | /* TODO: restore other things? */ | 106 | /* TODO: restore other things? */ |
107 | if (info.mtime) { | 107 | if (info.mtime) { |
108 | struct timeval times = {.tv_sec = info.mtime, | 108 | struct timeval times; |
109 | .tv_usec = 0}; | 109 | |
110 | times.tv_sec = info.mtime; | ||
111 | times.tv_usec = 0; | ||
110 | /* Note: we closed it first. | 112 | /* Note: we closed it first. |
111 | * On some systems calling utime | 113 | * On some systems calling utimes |
112 | * then closing resets the mtime | 114 | * then closing resets the mtime |
113 | * back to current time. */ | 115 | * back to current time. */ |
114 | utimes(new_name, ×); /* ignoring errors */ | 116 | utimes(new_name, ×); /* ignoring errors */ |