summaryrefslogtreecommitdiffstats
path: root/usr.bin/du
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2001-09-04 09:43:31 +0000
committerrobert <robert@FreeBSD.org>2001-09-04 09:43:31 +0000
commit67c0b42424948411ab00fbd01d23e54283cddab3 (patch)
treebeb339b7616563972871ae5f4a2124ad5ec190d3 /usr.bin/du
parentcfdeaad88e4c61ebac1f8299e52533d8f9dd57c2 (diff)
downloadFreeBSD-src-67c0b42424948411ab00fbd01d23e54283cddab3.zip
FreeBSD-src-67c0b42424948411ab00fbd01d23e54283cddab3.tar.gz
Use the correct blocksize when invoked with both -h and -k
options. PR: 30275 Reviewed by: jake
Diffstat (limited to 'usr.bin/du')
-rw-r--r--usr.bin/du/du.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index c53665b..8595341 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -167,7 +167,8 @@ main(argc, argv)
valp = vals_base2;
break;
case 'k':
- putenv("BLOCKSIZE=1024");
+ if (!hflag)
+ putenv("BLOCKSIZE=1024");
break;
case 'r': /* Compatibility. */
break;
OpenPOWER on IntegriCloud