diff options
author | Denys Vlasenko | 2009-11-29 19:40:36 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-29 19:40:36 +0100 |
commit | dcbfaba264df2f9f07e53f77e8178f5bfc7ae88e (patch) | |
tree | b5dfaa3715ded4f3c9a676b6cf636ad50bf04c9d /archival/bbunzip.c | |
parent | bf22475e9552b08feb31d40250ab293d2fd98234 (diff) | |
download | busybox-dcbfaba264df2f9f07e53f77e8178f5bfc7ae88e.zip busybox-dcbfaba264df2f9f07e53f77e8178f5bfc7ae88e.tar.gz |
fix improper utimes usage
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r-- | archival/bbunzip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index 22a0fd1..df674bc 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c @@ -105,15 +105,15 @@ int FAST_FUNC bbunpack(char **argv, if (status >= 0) { /* TODO: restore other things? */ if (info.mtime) { - struct timeval times; + struct timeval times[2]; - times.tv_sec = info.mtime; - times.tv_usec = 0; + times[1].tv_sec = times[0].tv_sec = info.mtime; + times[1].tv_usec = times[0].tv_usec = 0; /* Note: we closed it first. * On some systems calling utimes * then closing resets the mtime * back to current time. */ - utimes(new_name, ×); /* ignoring errors */ + utimes(new_name, times); /* ignoring errors */ } /* Delete _compressed_ file */ |