Commit Diff


commit - 12463d8bf337d3eb12e6cd73d5bd1f25c278e571
commit + 22902794fc6f1f4d5bf6b01fdc20e783fb86af97
blob - 1ad99accb93f9a3c95a0f6063a7d96d028027d63
blob + 46f05d1f47c21739755c08c3898c805c42d097f9
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -856,9 +856,6 @@ read_dirlist(struct got_pathlist_head *dirlist, int di
 	struct dirent *dep = NULL;
 	struct dirent *de = NULL;
 
-	if (lseek(dirfd, SEEK_SET, 0) == -1)
-		return got_error_from_errno("lseek");
-
 	dir = fdopendir(dirfd);
 	if (dir == NULL)
 		return got_error_from_errno2("fdopendir", path);