aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/bbunzip.c2
-rw-r--r--archival/cpio.c2
-rw-r--r--archival/dpkg.c4
-rw-r--r--archival/libunarchive/data_extract_all.c4
4 files changed, 7 insertions, 5 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index d96790b89..a195434e4 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -307,7 +307,7 @@ int gunzip_main(int argc UNUSED_PARAM, char **argv)
307 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 307 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
308 */ 308 */
309//usage:#define bunzip2_trivial_usage 309//usage:#define bunzip2_trivial_usage
310//usage: "[OPTIONS] [FILE]..." 310//usage: "[-cf] [FILE]..."
311//usage:#define bunzip2_full_usage "\n\n" 311//usage:#define bunzip2_full_usage "\n\n"
312//usage: "Decompress FILEs (or stdin)\n" 312//usage: "Decompress FILEs (or stdin)\n"
313//usage: "\nOptions:" 313//usage: "\nOptions:"
diff --git a/archival/cpio.c b/archival/cpio.c
index 7cd8ee8a7..a2d74dc79 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -370,7 +370,7 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
370 if (cpio_fmt[0] != 'n') /* we _require_ "-H newc" */ 370 if (cpio_fmt[0] != 'n') /* we _require_ "-H newc" */
371 bb_show_usage(); 371 bb_show_usage();
372 if (opt & CPIO_OPT_FILE) { 372 if (opt & CPIO_OPT_FILE) {
373 xmove_fd(xopen3(cpio_filename, O_WRONLY | O_CREAT | O_TRUNC, 0666), STDOUT_FILENO); 373 xmove_fd(xopen(cpio_filename, O_WRONLY | O_CREAT | O_TRUNC), STDOUT_FILENO);
374 } 374 }
375 dump: 375 dump:
376 return cpio_o(); 376 return cpio_o();
diff --git a/archival/dpkg.c b/archival/dpkg.c
index b36c26198..07f01501b 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1524,8 +1524,8 @@ static char FAST_FUNC filter_rename_config(archive_handle_t *archive_handle)
1524 buf = xmalloc(4096); 1524 buf = xmalloc(4096);
1525 md5_begin(&md5); 1525 md5_begin(&md5);
1526 while ((count = safe_read(fd, buf, 4096)) > 0) 1526 while ((count = safe_read(fd, buf, 4096)) > 0)
1527 md5_hash(buf, count, &md5); 1527 md5_hash(&md5, buf, count);
1528 md5_end(buf, &md5); /* using buf as result storage */ 1528 md5_end(&md5, buf); /* using buf as result storage */
1529 close(fd); 1529 close(fd);
1530 1530
1531 md5line = xmalloc(16 * 2 + 2 + strlen(name_ptr) + 1); 1531 md5line = xmalloc(16 * 2 + 2 + strlen(name_ptr) + 1);
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c
index cc549cd78..5fb1ab2ae 100644
--- a/archival/libunarchive/data_extract_all.c
+++ b/archival/libunarchive/data_extract_all.c
@@ -69,7 +69,9 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
69 } 69 }
70 } 70 }
71 else if (existing_sb.st_mtime >= file_header->mtime) { 71 else if (existing_sb.st_mtime >= file_header->mtime) {
72 if (!(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET)) { 72 if (!(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET)
73 && !S_ISDIR(file_header->mode)
74 ) {
73 bb_error_msg("%s not created: newer or " 75 bb_error_msg("%s not created: newer or "
74 "same age file exists", file_header->name); 76 "same age file exists", file_header->name);
75 } 77 }