Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
(nop) Use proper order to lseek()
Bryan Drewery committed 12 years ago
commit 19251065945339f9a9e1850ae3d93ba258634253
parent 7879c71
1 file changed +1 -1
modified libpkg/update.c
@@ -117,7 +117,7 @@ repo_archive_extract_file(int fd, const char *file, const char *dest, const char
	archive_read_support_format_tar(a);

	/* Seek to the begin of file */
-
	(void)lseek(fd, SEEK_SET, 0);
+
	(void)lseek(fd, 0, SEEK_SET);
	archive_read_open_fd(a, fd, 4096);

	while (archive_read_next_header(a, &ae) == ARCHIVE_OK) {