Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2002 07:20:04 -0700 (PDT)
From:      Klaus Weber <fbsd-bugs@unix-admin.de>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/40980: du(1)'s -h and -k options interact confusingly
Message-ID:  <200207251420.g6PEK44S069795@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/40980; it has been noted by GNATS.

From: Klaus Weber <fbsd-bugs@unix-admin.de>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207251420.g6PEK44S069795>