mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Fix --apparent-size on ext4 and MacOS
All credit goes to @JJJollyjim in this PR https://github.com/uutils/coreutils/pull/1294, but that PR needs to be rebased over master to be mergeable and hasn't been after multiple weeks.
This commit is contained in:
parent
a673c12694
commit
13e57616b4
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ Try '{} --help' for more information.",
|
|||
let len = len.unwrap();
|
||||
for (index, stat) in iter.enumerate() {
|
||||
let size = if matches.opt_present("apparent-size") {
|
||||
stat.nlink * stat.size
|
||||
stat.size
|
||||
} else if matches.opt_present("b") {
|
||||
stat.size
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue