| 640 | } |
| 641 | |
| 642 | int access_or_warn(const char *path, int mode, unsigned flag) |
| 643 | { |
| 644 | int ret = access(path, mode); |
| 645 | if (ret && !access_error_is_ok(errno, flag)) |
| 646 | warn_on_inaccessible(path); |
| 647 | return ret; |
| 648 | } |
| 649 | |
| 650 | int access_or_die(const char *path, int mode, unsigned flag) |
| 651 | { |
no test coverage detected