summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGlenn L McGrath2003-05-26 14:07:50 +0000
committerGlenn L McGrath2003-05-26 14:07:50 +0000
commit393183dccc4d100366972bdbbdc6e03a77839120 (patch)
treed2e94dac0f1f5da5cb3ecb927b78c4c2a02f4ea6 /coreutils
parentddfe18df75c15be4a2aadddb241c3b86b1e2968a (diff)
downloadbusybox-393183dccc4d100366972bdbbdc6e03a77839120.zip
busybox-393183dccc4d100366972bdbbdc6e03a77839120.tar.gz
Vodz, last_patch_86
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/du.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/du.c b/coreutils/du.c
index 702a9aa..1c16cfb 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -144,10 +144,9 @@ static long du(char *filename)
while ((entry = readdir(dir))) {
char *name = entry->d_name;
- if ((name[0] == '.') && (!name[1] || (name[1] == '.' && !name[2]))) {
+ newfile = concat_subpath_file(filename, name);
+ if(newfile == NULL)
continue;
- }
- newfile = concat_path_file(filename, name);
++du_depth;
sum += du(newfile);
--du_depth;