Follow symlinks when classifying sensitive paths in blacklist mode

This commit is contained in:
2026-04-13 16:49:42 +02:00
parent bd1f938f54
commit 7b7294d94e
+1 -1
View File
@@ -53,7 +53,7 @@ enum PathKind {
}
fn classify_path(path: &Path) -> PathKind {
match fs::symlink_metadata(path) {
match fs::metadata(path) {
Ok(m) if m.is_dir() => PathKind::Dir,
Ok(_) => PathKind::File,
Err(_) => PathKind::Missing,