| 284 | } |
| 285 | |
| 286 | static bool tf_path_has_parent(const char *path, const char *parent) { |
| 287 | size_t length = parent ? strlen(parent) : 0; |
| 288 | return path && length > 0 && strncmp(path, parent, length) == 0 && |
| 289 | (path[length] == '/' || path[length] == '\\'); |
| 290 | } |
| 291 | |
| 292 | /* The daemon rendezvous is not derived from HOME or the cache: its key is a |
| 293 | * constant product hash and its default parent is the system temp root. With |