du.c (37952) | du.c (39076) |
---|---|
1/* 2 * Copyright (c) 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Newcomb. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 200 unchanged lines hidden (view full) --- 209 210 if (listall || p->fts_level == 0) 211 (void) printf("%qd\t%s\n", 212 howmany(p->fts_statp->st_blocks, blocksize), 213 p->fts_path); 214 215 p->fts_parent->fts_number += p->fts_statp->st_blocks; 216 } | 1/* 2 * Copyright (c) 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Newcomb. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 200 unchanged lines hidden (view full) --- 209 210 if (listall || p->fts_level == 0) 211 (void) printf("%qd\t%s\n", 212 howmany(p->fts_statp->st_blocks, blocksize), 213 p->fts_path); 214 215 p->fts_parent->fts_number += p->fts_statp->st_blocks; 216 } |
217 savednumber = p->fts_number; | 217 savednumber = p->fts_parent->fts_number; |
218 } 219 220 if (errno) 221 err(1, "fts_read"); 222 223 if (cflag) 224 (void) printf("%ld\ttotal\n", howmany(savednumber, blocksize)); 225 --- 43 unchanged lines hidden --- | 218 } 219 220 if (errno) 221 err(1, "fts_read"); 222 223 if (cflag) 224 (void) printf("%ld\ttotal\n", howmany(savednumber, blocksize)); 225 --- 43 unchanged lines hidden --- |