diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/libunarchive/decompress_bunzip2.c | 4 | ||||
-rw-r--r-- | archival/unzip.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c index 8f35bc5f9..6da09fc1b 100644 --- a/archival/libunarchive/decompress_bunzip2.c +++ b/archival/libunarchive/decompress_bunzip2.c | |||
@@ -761,9 +761,9 @@ int main(int argc, char **argv) | |||
761 | char c; | 761 | char c; |
762 | 762 | ||
763 | if (i < 0) | 763 | if (i < 0) |
764 | fprintf(stderr,"%s\n", bunzip_errors[-i]); | 764 | fprintf(stderr, "%s\n", bunzip_errors[-i]); |
765 | else if (read(STDIN_FILENO, &c, 1)) | 765 | else if (read(STDIN_FILENO, &c, 1)) |
766 | fprintf(stderr,"Trailing garbage ignored\n"); | 766 | fprintf(stderr, "Trailing garbage ignored\n"); |
767 | return -i; | 767 | return -i; |
768 | } | 768 | } |
769 | #endif | 769 | #endif |
diff --git a/archival/unzip.c b/archival/unzip.c index c7d39daef..2c8971295 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -308,7 +308,7 @@ int unzip_main(int argc, char **argv) | |||
308 | } else if (last_char_is(dst_fn, '/')) { /* Extract directory */ | 308 | } else if (last_char_is(dst_fn, '/')) { /* Extract directory */ |
309 | if (stat(dst_fn, &stat_buf) == -1) { | 309 | if (stat(dst_fn, &stat_buf) == -1) { |
310 | if (errno != ENOENT) { | 310 | if (errno != ENOENT) { |
311 | bb_perror_msg_and_die("cannot stat '%s'",dst_fn); | 311 | bb_perror_msg_and_die("cannot stat '%s'", dst_fn); |
312 | } | 312 | } |
313 | if (verbose) { | 313 | if (verbose) { |
314 | printf(" creating: %s\n", dst_fn); | 314 | printf(" creating: %s\n", dst_fn); |
@@ -328,7 +328,7 @@ int unzip_main(int argc, char **argv) | |||
328 | _check_file: | 328 | _check_file: |
329 | if (stat(dst_fn, &stat_buf) == -1) { /* File does not exist */ | 329 | if (stat(dst_fn, &stat_buf) == -1) { /* File does not exist */ |
330 | if (errno != ENOENT) { | 330 | if (errno != ENOENT) { |
331 | bb_perror_msg_and_die("cannot stat '%s'",dst_fn); | 331 | bb_perror_msg_and_die("cannot stat '%s'", dst_fn); |
332 | } | 332 | } |
333 | i = 'y'; | 333 | i = 'y'; |
334 | } else { /* File already exists */ | 334 | } else { /* File already exists */ |
@@ -345,7 +345,7 @@ int unzip_main(int argc, char **argv) | |||
345 | i = key_buf[0]; | 345 | i = key_buf[0]; |
346 | } | 346 | } |
347 | } else { /* File is not regular file */ | 347 | } else { /* File is not regular file */ |
348 | bb_error_msg_and_die("'%s' exists but is not regular file",dst_fn); | 348 | bb_error_msg_and_die("'%s' exists but is not regular file", dst_fn); |
349 | } | 349 | } |
350 | } | 350 | } |
351 | } | 351 | } |