| 896 | } |
| 897 | |
| 898 | static bool endpoint_runtime_still_valid(const cbm_daemon_ipc_endpoint_t *endpoint) { |
| 899 | if (!endpoint || endpoint->dir_fd < 0) { |
| 900 | return false; |
| 901 | } |
| 902 | struct stat current; |
| 903 | return private_runtime_snapshot(endpoint->dir_fd, endpoint->runtime_dir, true, ¤t) && |
| 904 | current.st_dev == endpoint->dir_device && current.st_ino == endpoint->dir_inode; |
| 905 | } |
| 906 | |
| 907 | static bool private_regular_file_snapshot(int directory_fd, const char *base_name, int fd, |
| 908 | nlink_t expected_links, struct stat *status_out) { |
no test coverage detected