svn commit: r189388 - head/lib/libarchive

Tim Kientzle kientzle at FreeBSD.org
Wed Mar 4 17:59:50 PST 2009


Author: kientzle
Date: Thu Mar  5 01:59:49 2009
New Revision: 189388
URL: http://svn.freebsd.org/changeset/base/189388

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

Modified:
  head/lib/libarchive/archive_write_disk.c

Modified: head/lib/libarchive/archive_write_disk.c
==============================================================================
--- head/lib/libarchive/archive_write_disk.c	Thu Mar  5 00:57:01 2009	(r189387)
+++ head/lib/libarchive/archive_write_disk.c	Thu Mar  5 01:59:49 2009	(r189388)
@@ -573,8 +573,8 @@ write_data_block(struct archive_write_di
 				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);


More information about the svn-src-head mailing list