diff options
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r-- | archival/bbunzip.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index d25f50939..d6625e476 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c | |||
@@ -98,6 +98,7 @@ int FAST_FUNC bbunpack(char **argv, | |||
98 | status = unpacker(&info); | 98 | status = unpacker(&info); |
99 | if (status < 0) | 99 | if (status < 0) |
100 | exitcode = 1; | 100 | exitcode = 1; |
101 | xclose(STDOUT_FILENO); /* with error check! */ | ||
101 | 102 | ||
102 | if (filename) { | 103 | if (filename) { |
103 | char *del = new_name; | 104 | char *del = new_name; |
@@ -108,12 +109,11 @@ int FAST_FUNC bbunpack(char **argv, | |||
108 | 109 | ||
109 | times.actime = info.mtime; | 110 | times.actime = info.mtime; |
110 | times.modtime = info.mtime; | 111 | times.modtime = info.mtime; |
111 | /* Close first. | 112 | /* Note: we closed it first. |
112 | * On some systems calling utime | 113 | * On some systems calling utime |
113 | * then closing resets the mtime. */ | 114 | * then closing resets the mtime |
114 | close(STDOUT_FILENO); | 115 | * back to current time. */ |
115 | /* Ignoring errors */ | 116 | utime(new_name, ×); /* ignoring errors */ |
116 | utime(new_name, ×); | ||
117 | } | 117 | } |
118 | 118 | ||
119 | /* Delete _compressed_ file */ | 119 | /* Delete _compressed_ file */ |