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