| 110 | } |
| 111 | |
| 112 | int stat_validity_check(struct stat_validity *sv, const char *path) |
| 113 | { |
| 114 | struct stat st; |
| 115 | |
| 116 | if (stat(path, &st) < 0) |
| 117 | return sv->sd == NULL; |
| 118 | if (!sv->sd) |
| 119 | return 0; |
| 120 | return S_ISREG(st.st_mode) && !match_stat_data(sv->sd, &st); |
| 121 | } |
| 122 | |
| 123 | void stat_validity_update(struct stat_validity *sv, int fd) |
| 124 | { |
no test coverage detected