bool extract = false;
int32_t file_index;
char ec1[50]; /* Buffer printing huge values */
-
BFILE bfd; /* File content */
uint64_t fileAddr = 0; /* file write address */
uint32_t size; /* Size of file */
Jmsg3(jcr, M_ERROR, 0, _("Seek to %s error on %s: ERR=%s\n"),
edit_uint64(*addr, ec1), jcr->last_fname,
be.strerror(bfd->berrno));
- return false;
+ return false;
}
}
*data += SPARSE_FADDR_SIZE;
Dmsg1(500, "Crypto unser block size=%d\n", jcr->crypto_packet_len - CRYPTO_LEN_SIZE);
if (jcr->crypto_packet_len == 0 || jcr->crypto_buf_len < jcr->crypto_packet_len) {
- /* No full preserved block is available. */
- return 0;
+ /* No full preserved block is available. */
+ return 0;
}
/* We have one full block, set up the filter input buffers */
}
if (flags & FO_SPARSE) {
- if (!sparse_data(jcr, bfd, addr, &wbuf, &wsize)) {
- return -1;
- }
+ if (!sparse_data(jcr, bfd, addr, &wbuf, &wsize)) {
+ return -1;
+ }
}
if (flags & FO_GZIP) {
if (flags & FO_ENCRYPT) {
/* Move any remaining data to start of buffer */
if (jcr->crypto_buf_len > 0) {
- Dmsg1(30, "Moving %u buffered bytes to start of buffer\n", jcr->crypto_buf_len);
- memmove(jcr->crypto_buf, &jcr->crypto_buf[jcr->crypto_packet_len],
- jcr->crypto_buf_len);
+ Dmsg1(30, "Moving %u buffered bytes to start of buffer\n", jcr->crypto_buf_len);
+ memmove(jcr->crypto_buf, &jcr->crypto_buf[jcr->crypto_packet_len],
+ jcr->crypto_buf_len);
}
/* The packet was successfully written, reset the length so that the next
* packet length may be re-read by unser_crypto_packet_len() */
if (jcr->crypto_buf_len != jcr->crypto_packet_len) {
Jmsg2(jcr, M_FATAL, 0,
- _("Unexpected number of bytes remaining at end of file, received %u, expected %u\n"),
- jcr->crypto_packet_len, jcr->crypto_buf_len);
+ _("Unexpected number of bytes remaining at end of file, received %u, expected %u\n"),
+ jcr->crypto_packet_len, jcr->crypto_buf_len);
return false;
}
jcr->crypto_packet_len = 0;
if (flags & FO_SPARSE) {
- if (!sparse_data(jcr, bfd, addr, &wbuf, &wsize)) {
- return false;
- }
+ if (!sparse_data(jcr, bfd, addr, &wbuf, &wsize)) {
+ return false;
+ }
}
if (flags & FO_GZIP) {