mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-18 03:01:06 +00:00
Previously, this was handling symlinks wrong (i.e. `du` was following them, not just looking at them as files). Handling them correctly requires using `lstat`. Also, this would abort when reading a file with invalid permissions (or one that doesn't exist... as a link target of a symlink), rather than just warning and continuing. Also, this patch reduces the number of `stat`s done per file to exactly one (i.e. the minimum). |
||
|---|---|---|
| .. | ||
| du.rs | ||