aboutsummaryrefslogtreecommitdiff
path: root/archival/libarchive/get_header_tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libarchive/get_header_tar.c')
-rw-r--r--archival/libarchive/get_header_tar.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c
index 52fa4554a..b3131ff2d 100644
--- a/archival/libarchive/get_header_tar.c
+++ b/archival/libarchive/get_header_tar.c
@@ -32,7 +32,7 @@ static unsigned long long getOctal(char *str, int len)
32 if (*end != '\0' && *end != ' ') { 32 if (*end != '\0' && *end != ' ') {
33 int8_t first = str[0]; 33 int8_t first = str[0];
34 if (!(first & 0x80)) 34 if (!(first & 0x80))
35 bb_error_msg_and_die("corrupted octal value in tar header"); 35 bb_simple_error_msg_and_die("corrupted octal value in tar header");
36 /* 36 /*
37 * GNU tar uses "base-256 encoding" for very large numbers. 37 * GNU tar uses "base-256 encoding" for very large numbers.
38 * Encoding is binary, with highest bit always set as a marker 38 * Encoding is binary, with highest bit always set as a marker
@@ -100,7 +100,7 @@ static void process_pax_hdr(archive_handle_t *archive_handle, unsigned sz, int g
100 || errno != EINVAL 100 || errno != EINVAL
101 || *end != ' ' 101 || *end != ' '
102 ) { 102 ) {
103 bb_error_msg("malformed extended header, skipped"); 103 bb_simple_error_msg("malformed extended header, skipped");
104 // More verbose version: 104 // More verbose version:
105 //bb_error_msg("malformed extended header at %"OFF_FMT"d, skipped", 105 //bb_error_msg("malformed extended header at %"OFF_FMT"d, skipped",
106 // archive_handle->offset - (sz + len)); 106 // archive_handle->offset - (sz + len));
@@ -194,13 +194,13 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle)
194 * the very first read fails. Grrr. 194 * the very first read fails. Grrr.
195 */ 195 */
196 if (archive_handle->offset == 0) 196 if (archive_handle->offset == 0)
197 bb_error_msg("short read"); 197 bb_simple_error_msg("short read");
198 /* this merely signals end of archive, not exit(1): */ 198 /* this merely signals end of archive, not exit(1): */
199 return EXIT_FAILURE; 199 return EXIT_FAILURE;
200 } 200 }
201 if (i != 512) { 201 if (i != 512) {
202 IF_FEATURE_TAR_AUTODETECT(goto autodetect;) 202 IF_FEATURE_TAR_AUTODETECT(goto autodetect;)
203 bb_error_msg_and_die("short read"); 203 bb_simple_error_msg_and_die("short read");
204 } 204 }
205 205
206#else 206#else
@@ -243,11 +243,11 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle)
243 goto err; 243 goto err;
244 if (setup_unzip_on_fd(archive_handle->src_fd, /*fail_if_not_compressed:*/ 0) != 0) 244 if (setup_unzip_on_fd(archive_handle->src_fd, /*fail_if_not_compressed:*/ 0) != 0)
245 err: 245 err:
246 bb_error_msg_and_die("invalid tar magic"); 246 bb_simple_error_msg_and_die("invalid tar magic");
247 archive_handle->offset = 0; 247 archive_handle->offset = 0;
248 goto again_after_align; 248 goto again_after_align;
249#endif 249#endif
250 bb_error_msg_and_die("invalid tar magic"); 250 bb_simple_error_msg_and_die("invalid tar magic");
251 } 251 }
252 252
253 /* Do checksum on headers. 253 /* Do checksum on headers.
@@ -282,7 +282,7 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle)
282 if (sum_u != sum 282 if (sum_u != sum
283 IF_FEATURE_TAR_OLDSUN_COMPATIBILITY(&& sum_s != sum) 283 IF_FEATURE_TAR_OLDSUN_COMPATIBILITY(&& sum_s != sum)
284 ) { 284 ) {
285 bb_error_msg_and_die("invalid tar header checksum"); 285 bb_simple_error_msg_and_die("invalid tar header checksum");
286 } 286 }
287 287
288 /* GET_OCTAL trashes subsequent field, therefore we call it 288 /* GET_OCTAL trashes subsequent field, therefore we call it