Commit Diff


commit - 8bb2b40c0fb2116f6e878aa78960309ecf7740f6
commit + 64ab72383b1b73842575e2052cb542c0b5fd1345
blob - ddea7438fde35927dd8f8d638e8af637251095e6
blob + 44c7e0d35a700f45daed13f4493dfa603f97a834
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
@@ -553,12 +553,6 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t *
 			objects[i]->valid = 1;
 			nloose++;
 			update_packidx(&nlarge, &packidx, nobj, obj);
-		}
-
-		if (lseek(pack->fd, obj->off + obj->tslen + obj->len,
-		    SEEK_SET) == -1) {
-			err = got_error_from_errno("lseek");
-			goto done;
 		}
 	}
 	nvalid = nloose;