delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/28/14:07:07

From: bruceh AT ns1 DOT ieighty DOT net (Bruce N. Hunsaker)
Subject: b19 du bug persists
28 Feb 1998 14:07:07 -0800 :
Message-ID: <199802282244.PAA09444.cygnus.gnu-win32@ns1.ieighty.net>
To: gnu-win32 AT cygnus DOT com

Beta 19 has the same problems with 'du' as b18:
  du -k shows size 1/2 of what it should be
  du -m shows size 1/2 of what it should be

fix/workaround:

change line: size =ST_NBLOCKS(stat_buf);
	to:  size =(stat_buf.st_size + 511) / 512;

and
	convert_blocks( size, output_size == size_kilobytes)
    to: convert_blocks( size, output_size )

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019