From owner-freebsd-bugs Thu Jul 25 7:20:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03FC237B400 for ; Thu, 25 Jul 2002 07:20:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3B9343E3B for ; Thu, 25 Jul 2002 07:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6PEK4JU069796 for ; Thu, 25 Jul 2002 07:20:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6PEK44S069795; Thu, 25 Jul 2002 07:20:04 -0700 (PDT) Date: Thu, 25 Jul 2002 07:20:04 -0700 (PDT) Message-Id: <200207251420.g6PEK44S069795@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Klaus Weber Subject: Re: bin/40980: du(1)'s -h and -k options interact confusingly Reply-To: Klaus Weber Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/40980; it has been noted by GNATS. From: Klaus Weber To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/40980: du(1)'s -h and -k options interact confusingly Date: Thu, 25 Jul 2002 16:18:34 +0200 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached is a revised patch, which accomplishes the same result with fewer changes. --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff3 --- du.c.orig Thu Jul 25 14:59:25 2002 +++ du.c Thu Jul 25 16:12:59 2002 @@ -251,7 +251,7 @@ if (p->fts_level <= depth) { if (hflag) { - (void) prthumanval(howmany(p->fts_number, blocksize)); + (void) prthumanval(howmany(p->fts_number, 1)); (void) printf("\t%s\n", p->fts_path); } else { (void) printf("%ld\t%s\n", @@ -278,7 +278,7 @@ if (listall || p->fts_level == 0) { if (hflag) { (void) prthumanval(howmany(p->fts_statp->st_blocks, - blocksize)); + 1)); (void) printf("\t%s\n", p->fts_path); } else { (void) printf("%qd\t%s\n", @@ -297,7 +297,7 @@ if (cflag) { if (hflag) { - (void) prthumanval(howmany(savednumber, blocksize)); + (void) prthumanval(howmany(savednumber, 1)); (void) printf("\ttotal\n"); } else { (void) printf("%ld\ttotal\n", howmany(savednumber, blocksize)); --IJpNTDwzlM2Ie8A6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message