| 722 | } |
| 723 | |
| 724 | int is_missing_file(const char *filename) |
| 725 | { |
| 726 | struct stat st; |
| 727 | |
| 728 | if (stat(filename, &st) < 0) { |
| 729 | if (errno == ENOENT) |
| 730 | return 1; |
| 731 | die_errno(_("could not stat %s"), filename); |
| 732 | } |
| 733 | |
| 734 | return 0; |
| 735 | } |
| 736 | |
| 737 | int is_empty_or_missing_file(const char *filename) |
| 738 | { |
no test coverage detected