mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 04:12:51 +00:00
Correct r189383, which mis-merged a change from libarchive.googlecode.com.
This commit is contained in:
parent
7ccf00df0d
commit
a48ae5111e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189388
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user