1
Fork 0
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:
E5ten 2018-10-29 09:29:48 -04:00 committed by GitHub
parent a673c12694
commit 13e57616b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {