| 724 | } |
| 725 | |
| 726 | static bool endpoint_runtime_still_valid(const cbm_daemon_ipc_endpoint_t *endpoint) { |
| 727 | if (!endpoint || endpoint->dir_fd < 0) { |
| 728 | return false; |
| 729 | } |
| 730 | struct stat current; |
| 731 | return private_runtime_snapshot(endpoint->dir_fd, endpoint->runtime_dir, true, ¤t) && |
| 732 | current.st_dev == endpoint->dir_device && current.st_ino == endpoint->dir_inode; |
| 733 | } |
| 734 | |
| 735 | static bool private_regular_file_snapshot(int directory_fd, const char *base_name, int fd, |
| 736 | nlink_t expected_links, struct stat *status_out) { |
no test coverage detected