commit 77c65f86323fa18ae23ab5bb93c486a0c840f308 from: Omar Polo date: Tue Jul 11 14:43:58 2023 UTC purge_redundant_pack(): don't special-case .pack or .idx leftover, the error handling of unlink() a couple of lines below used to carry a similar special-casing but was dropped; drop it here too. commit - 0317ab6c0ce48babb19e46067d8677892bee130c commit + 77c65f86323fa18ae23ab5bb93c486a0c840f308 blob - 1230b643fa320fa603fe0a8ed03d19e53a6b57e1 blob + a12b9a6780a79ce5cb1abda9df2ddeadfba7f34f --- lib/repository_admin.c +++ lib/repository_admin.c @@ -1222,9 +1222,7 @@ purge_redundant_pack(struct got_repository *repo, cons if (fstatat(got_repo_get_fd(repo), path, &sb, 0) == -1) { - if (errno == ENOENT && - strcmp(ext[i], ".pack") != 0 && - strcmp(ext[i], ".idx") != 0) + if (errno == ENOENT) continue; return got_error_from_errno2("fstatat", path); }