1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-13 10:37:58 +00:00

Merge pull request #779 from ebfe/du-symlink

du: fix default symlink handling
This commit is contained in:
Heather 2015-12-26 23:10:01 +04:00
commit 122284e25a

View file

@ -51,7 +51,7 @@ struct Stat {
impl Stat {
fn new(path: &PathBuf) -> Stat {
let metadata = safe_unwrap!(fs::metadata(path));
let metadata = safe_unwrap!(fs::symlink_metadata(path));
Stat {
path: path.clone(),
is_dir: metadata.is_dir(),