From 67c0b42424948411ab00fbd01d23e54283cddab3 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 4 Sep 2001 09:43:31 +0000 Subject: Use the correct blocksize when invoked with both -h and -k options. PR: 30275 Reviewed by: jake --- usr.bin/du/du.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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; -- cgit v1.1