Follow symlinks when classifying sensitive paths in blacklist mode
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user