| 599 | } |
| 600 | |
| 601 | static int warn_if_unremovable(const char *op, const char *file, int rc) |
| 602 | { |
| 603 | int err; |
| 604 | if (!rc || errno == ENOENT) |
| 605 | return 0; |
| 606 | err = errno; |
| 607 | warning_errno("unable to %s '%s'", op, file); |
| 608 | errno = err; |
| 609 | return rc; |
| 610 | } |
| 611 | |
| 612 | int unlink_or_msg(const char *file, struct strbuf *err) |
| 613 | { |
no test coverage detected