Skip to content

Commit 122284e

Browse files
HeatherHeather
authored andcommitted
Merge pull request #779 from ebfe/du-symlink
du: fix default symlink handling
2 parents 6558edc + 74a5869 commit 122284e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/du/du.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct Stat {
5151

5252
impl Stat {
5353
fn new(path: &PathBuf) -> Stat {
54-
let metadata = safe_unwrap!(fs::metadata(path));
54+
let metadata = safe_unwrap!(fs::symlink_metadata(path));
5555
Stat {
5656
path: path.clone(),
5757
is_dir: metadata.is_dir(),

0 commit comments

Comments
 (0)