diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-05-26 14:07:50 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-05-26 14:07:50 +0000 |
commit | 76f4ab68a56e14747c25e6da830cf73b38bbe1cd (patch) | |
tree | d2e94dac0f1f5da5cb3ecb927b78c4c2a02f4ea6 /coreutils | |
parent | 37e0338781ea28f57bed354fe745effb020d16fc (diff) | |
download | busybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.tar.gz busybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.tar.bz2 busybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.zip |
Vodz, last_patch_86
git-svn-id: svn://busybox.net/trunk/busybox@6853 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/du.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index 702a9aa14..1c16cfbd4 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -144,10 +144,9 @@ static long du(char *filename) | |||
144 | while ((entry = readdir(dir))) { | 144 | while ((entry = readdir(dir))) { |
145 | char *name = entry->d_name; | 145 | char *name = entry->d_name; |
146 | 146 | ||
147 | if ((name[0] == '.') && (!name[1] || (name[1] == '.' && !name[2]))) { | 147 | newfile = concat_subpath_file(filename, name); |
148 | if(newfile == NULL) | ||
148 | continue; | 149 | continue; |
149 | } | ||
150 | newfile = concat_path_file(filename, name); | ||
151 | ++du_depth; | 150 | ++du_depth; |
152 | sum += du(newfile); | 151 | sum += du(newfile); |
153 | --du_depth; | 152 | --du_depth; |