* file named AUTHORS, in the root directory of this distribution.
*/
/*
- * $Id: restore.c,v 1.52.2.7 2007/01/04 20:20:48 martinea Exp $
+ * $Id: restore.c,v 1.52 2006/08/23 11:41:54 martinea Exp $
*
* retrieves files from an amanda tape
*/
error("restore: write error = %s", strerror(errno));
/*NOTREACHED*/
}
- error("Short write: wrote %zd bytes expected %zd.", s, bytes_read);
+ error("Short write: wrote " SSIZE_T_FMT " bytes expected " SSIZE_T_FMT ".", s, bytes_read);
/*NOTREACHCED*/
}
wc += (off_t)bytes_read;
fprintf(stderr, "%s: error reading file header: %s\n",
get_pname(), strerror(errno));
file->type = F_UNKNOWN;
- } else if((size_t)bytes_read < blocksize) {
+ } else if((size_t)bytes_read < DISK_BLOCK_BYTES) {
if(bytes_read == 0) {
fprintf(stderr, "%s: missing file header block\n", get_pname());
} else {
error("write error: %s", strerror(errno));
/*NOTREACHED*/
} else {
- error("write error: %zd instead of %d", w, DISK_BLOCK_BYTES);
+ error("write error: " SSIZE_T_FMT " instead of %d", w, DISK_BLOCK_BYTES);
/*NOTREACHED*/
}
}
|| file->type != F_SPLIT_DUMPFILE))
need_uncompress=1;
- if(!flags->raw && file->encrypted)
+ if(!flags->raw && file->encrypted && !is_continuation
+ && (flags->inline_assemble || file->type != F_SPLIT_DUMPFILE))
need_decrypt=1;
/* Setup pipes for decryption / compression / uncompression */
error("restore: write error: %s", strerror(errno));
/* NOTREACHED */
} else if (s < bytes_read) {
- error("restore: wrote %zd of %zd bytes: %s",
+ error("restore: wrote " SSIZE_T_FMT " of " SSIZE_T_FMT " bytes: %s",
s, bytes_read, strerror(errno));
/* NOTREACHED */
}