aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/unzip.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/archival/unzip.c b/archival/unzip.c
index 97c743c43..21d4c2535 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -263,9 +263,9 @@ int unzip_main(int argc, char **argv)
263 total_size += zip_header.formatted.ucmpsize; 263 total_size += zip_header.formatted.ucmpsize;
264 264
265 if (listing) { /* List entry */ 265 if (listing) { /* List entry */
266 if (verbose) { 266 if (verbose) {
267 unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16); 267 unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16);
268 printf("%9u %02u-%02u-%02u %02u:%02u %s\n", 268 printf("%9u %02u-%02u-%02u %02u:%02u %s\n",
269 zip_header.formatted.ucmpsize, 269 zip_header.formatted.ucmpsize,
270 (dostime & 0x01e00000) >> 21, 270 (dostime & 0x01e00000) >> 21,
271 (dostime & 0x001f0000) >> 16, 271 (dostime & 0x001f0000) >> 16,
@@ -273,12 +273,12 @@ int unzip_main(int argc, char **argv)
273 (dostime & 0x0000f800) >> 11, 273 (dostime & 0x0000f800) >> 11,
274 (dostime & 0x000007e0) >> 5, 274 (dostime & 0x000007e0) >> 5,
275 dst_fn); 275 dst_fn);
276 total_entries++; 276 total_entries++;
277 } else { 277 } else {
278 /* short listing -- filenames only */ 278 /* short listing -- filenames only */
279 printf("%s\n", dst_fn); 279 puts(dst_fn);
280 } 280 }
281 i = 'n'; 281 i = 'n';
282 } else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */ 282 } else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */
283 i = -1; 283 i = -1;
284 } else if (last_char_is(dst_fn, '/')) { /* Extract directory */ 284 } else if (last_char_is(dst_fn, '/')) { /* Extract directory */