mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57: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();
|
let len = len.unwrap();
|
||||||
for (index, stat) in iter.enumerate() {
|
for (index, stat) in iter.enumerate() {
|
||||||
let size = if matches.opt_present("apparent-size") {
|
let size = if matches.opt_present("apparent-size") {
|
||||||
stat.nlink * stat.size
|
stat.size
|
||||||
} else if matches.opt_present("b") {
|
} else if matches.opt_present("b") {
|
||||||
stat.size
|
stat.size
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue