diff options
author | Glenn L McGrath | 2003-05-26 14:07:50 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-05-26 14:07:50 +0000 |
commit | 393183dccc4d100366972bdbbdc6e03a77839120 (patch) | |
tree | d2e94dac0f1f5da5cb3ecb927b78c4c2a02f4ea6 /libbb/recursive_action.c | |
parent | ddfe18df75c15be4a2aadddb241c3b86b1e2968a (diff) | |
download | busybox-393183dccc4d100366972bdbbdc6e03a77839120.zip busybox-393183dccc4d100366972bdbbdc6e03a77839120.tar.gz |
Vodz, last_patch_86
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r-- | libbb/recursive_action.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index a4a4a7b..3ea107c 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c @@ -103,11 +103,9 @@ int recursive_action(const char *fileName, while ((next = readdir(dir)) != NULL) { char *nextFile; - if ((strcmp(next->d_name, "..") == 0) - || (strcmp(next->d_name, ".") == 0)) { + nextFile = concat_subpath_file(fileName, next->d_name); + if(nextFile == NULL) continue; - } - nextFile = concat_path_file(fileName, next->d_name); if (! recursive_action(nextFile, TRUE, followLinks, depthFirst, fileAction, dirAction, userData)) { status = FALSE; |