| 703 | } |
| 704 | |
| 705 | static bool has_filesystem_root(const char *path) { |
| 706 | static const char *const roots[] = {"etc", "root", "var", "usr", "home", "tmp", |
| 707 | "private", "opt", "bin", "sbin", "dev", "proc", |
| 708 | "sys", "run", "lib", "lib64", "mnt", "media", |
| 709 | "boot", "srv", "Users", "Volumes", NULL}; |
| 710 | for (int i = 0; roots[i]; i++) { |
| 711 | if (starts_with_segment(path, roots[i])) { |
| 712 | return true; |
| 713 | } |
| 714 | } |
| 715 | return false; |
| 716 | } |
| 717 | |
| 718 | static bool has_hidden_config_segment(const char *path) { |
| 719 | static const char *const segments[] = {".aws", ".azure", ".config", ".docker", ".env", |
no test coverage detected