summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-06-08 09:30:10 +0000
committerdas <das@FreeBSD.org>2004-06-08 09:30:10 +0000
commit89c138dcf08ea624d3c1a707ff03f725d1b76f88 (patch)
tree0d308a0f1ce5a5cc19a0694658eac588c1f05184 /lib/libc/stdlib
parent03b595604e8ecb0df9c45b98ff40642cb6b3cf93 (diff)
downloadFreeBSD-src-89c138dcf08ea624d3c1a707ff03f725d1b76f88.zip
FreeBSD-src-89c138dcf08ea624d3c1a707ff03f725d1b76f88.tar.gz
If we are asked to print the total number of blocks, do so even if we
have no entries to print (either due to an empty directory or an error). This makes the -l and -s options more consistent, like Solaris and (Debian) Linux. To make this happen, tweak two optimizations on the second call to display(): - Don't skip display() altogether, even if list == NULL. - Don't skip the call to the printfn in display() if we need to print the total. PR: 45723
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud