mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07: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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user