aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRobert Drehmel <robert@FreeBSD.org>2001-09-04 09:43:31 +0000
committerRobert Drehmel <robert@FreeBSD.org>2001-09-04 09:43:31 +0000
commitc146250ee28d3932ffa606b83884c761b614276d (patch)
treebeb339b7616563972871ae5f4a2124ad5ec190d3 /usr.bin
parentee355dcb9eeed01afda4cfbd22ab7d2ccc94a67b (diff)
downloadsrc-c146250ee28d3932ffa606b83884c761b614276d.tar.gz
src-c146250ee28d3932ffa606b83884c761b614276d.zip
Use the correct blocksize when invoked with both -h and -k
options. PR: 30275 Reviewed by: jake
Notes
Notes: svn path=/head/; revision=82947
Diffstat (limited to 'usr.bin')
-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 c53665b0ed66..85953418fbed 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;