(paths: &[String])
| 431 | |
| 432 | #[cfg(not(unix))] |
| 433 | fn safe_daemon_hook_rel_paths(paths: &[String]) -> Vec<String> { |
| 434 | paths |
| 435 | .iter() |
| 436 | .filter(|path| { |
| 437 | let path_ref = Path::new(path.as_str()); |
| 438 | !path.is_empty() |
| 439 | && !path_ref.is_absolute() |
| 440 | && path_ref |
| 441 | .components() |
| 442 | .all(|component| !matches!(component, std::path::Component::ParentDir)) |
| 443 | }) |
| 444 | .cloned() |
| 445 | .collect() |
| 446 | } |
| 447 | |
| 448 | #[cfg(not(unix))] |
| 449 | fn hook_marker_file(agent: &str) -> &'static str { |
no test coverage detected