Re: du reports half of correct file sizes

2004-12-26 Thread Corinna Vinschen
On Dec 25 22:33, Brian Dessent wrote: > --- du.c.orig 2004-12-25 22:08:55.138687500 -0800 > +++ du.c2004-12-25 22:09:16.966812500 -0800 > @@ -382,7 +382,7 @@ process_file (FTS *fts, FTSENT *ent) > { >size = (apparent_size > ? sb->st_size > - : ST_NBL

Re: du reports half of correct file sizes

2004-12-25 Thread Brian Dessent
Ross Boulet wrote: > I do not have POSIXLY_CORRECT set. I tried the -b and -k > options. The -b option reports correctly, but the -k still > seems to report half. > > $ ls -l a* > -rw-r--r-- 1 rossboulet None2 Dec 25 17:24 a > -rw-r--r-- 1 rossboulet None 3740 Dec 25 10:58 aaa > > $ du -

RE: du reports half of correct file sizes

2004-12-25 Thread Ross Boulet
> Ross Boulet wrote: > > > > I saw some old items in the archives (circa 2001) but there > > was not much there about this problem. The most recent > > version of coreutils seems to have broken du. The listing > > below illustrates my point: > > If you have POSIXLY_CORRECT set in your environme

Re: du reports half of correct file sizes

2004-12-25 Thread Brian Dessent
Ross Boulet wrote: > > I saw some old items in the archives (circa 2001) but there > was not much there about this problem. The most recent > version of coreutils seems to have broken du. The listing > below illustrates my point: If you have POSIXLY_CORRECT set in your environment then the defa

du reports half of correct file sizes

2004-12-25 Thread Ross Boulet
I saw some old items in the archives (circa 2001) but there was not much there about this problem. The most recent version of coreutils seems to have broken du. The listing below illustrates my point: $ ls -l a* -rw-r--r-- 1 rossboulet None2 Dec 25 17:24 a -rw-r--r-- 1 rossboulet None 3740