Correct r189383, which mis-merged a change from libarchive.googlecode.com.

This commit is contained in:
Tim Kientzle 2009-03-05 01:59:49 +00:00
parent 7ccf00df0d
commit a48ae5111e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189388

View File

@ -573,8 +573,8 @@ write_data_block(struct archive_write_disk *a, const char *buff, size_t size)
bytes_to_write = block_end - a->offset;
}
/* Seek if necessary to the specified offset. */
if (offset != a->fd_offset) {
if (lseek(a->fd, offset, SEEK_SET) < 0) {
if (a->offset != a->fd_offset) {
if (lseek(a->fd, a->offset, SEEK_SET) < 0) {
archive_set_error(&a->archive, errno,
"Seek failed");
return (ARCHIVE_FATAL);