mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +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 | ||