[BACK]Return to du.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / du

Diff for /src/usr.bin/du/du.c between version 1.20 and 1.21

version 1.20, 2009/06/03 15:15:16 version 1.21, 2009/08/27 11:29:30
Line 185 
Line 185 
                          * or directories and this is post-order of the                           * or directories and this is post-order of the
                          * root of a traversal, display the total.                           * root of a traversal, display the total.
                          */                           */
                         if (listdirs || (!listfiles && !p->fts_level))                          if (listdirs ||
                               (!listfiles && p->fts_level == FTS_ROOTLEVEL)) {
                                 prtout((quad_t)howmany(p->fts_number, blocksize),                                  prtout((quad_t)howmany(p->fts_number, blocksize),
                                     p->fts_path, hflag);                                      p->fts_path, hflag);
                           }
                         break;                          break;
                 case FTS_DC:                    /* Ignore. */                  case FTS_DC:                    /* Ignore. */
                         break;                          break;
Line 204 
Line 206 
                          * If listing each file, or a non-directory file was                           * If listing each file, or a non-directory file was
                          * the root of a traversal, display the total.                           * the root of a traversal, display the total.
                          */                           */
                         if (listfiles || !p->fts_level)                          if (listfiles || p->fts_level == FTS_ROOTLEVEL)
                                 prtout(howmany(p->fts_statp->st_blocks, blocksize),                                  prtout(howmany(p->fts_statp->st_blocks, blocksize),
                                     p->fts_path, hflag);                                      p->fts_path, hflag);
                         p->fts_parent->fts_number += p->fts_statp->st_blocks;                          p->fts_parent->fts_number += p->fts_statp->st_blocks;

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21