| 735 | } |
| 736 | |
| 737 | int is_empty_or_missing_file(const char *filename) |
| 738 | { |
| 739 | struct stat st; |
| 740 | |
| 741 | if (stat(filename, &st) < 0) { |
| 742 | if (errno == ENOENT) |
| 743 | return 1; |
| 744 | die_errno(_("could not stat %s"), filename); |
| 745 | } |
| 746 | |
| 747 | return !st.st_size; |
| 748 | } |
| 749 | |
| 750 | int open_nofollow(const char *path, int flags) |
| 751 | { |
no test coverage detected