From 393183dccc4d100366972bdbbdc6e03a77839120 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 26 May 2003 14:07:50 +0000 Subject: Vodz, last_patch_86 --- coreutils/du.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'coreutils') 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; -- cgit v1.1