Commit Diff
- Commit:
fddec46f3a57acbaaeb97e07c6c02625a40564aa
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- 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.
- Actions:
- Patch | Tree
--- lib/repository_admin.c +++ lib/repository_admin.c @@ -1219,9 +1219,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); }