libbb/recursive_action.c: fix slight error in prev commit
This commit is contained in:
parent
671691cf21
commit
a8a3b497fc
@ -111,15 +111,17 @@ int FAST_FUNC recursive_action(const char *fileName,
|
|||||||
}
|
}
|
||||||
status = TRUE;
|
status = TRUE;
|
||||||
while ((next = readdir(dir)) != NULL) {
|
while ((next = readdir(dir)) != NULL) {
|
||||||
/*int s;*/
|
|
||||||
char *nextFile;
|
char *nextFile;
|
||||||
|
|
||||||
nextFile = concat_subpath_file(fileName, next->d_name);
|
nextFile = concat_subpath_file(fileName, next->d_name);
|
||||||
if (nextFile == NULL)
|
if (nextFile == NULL)
|
||||||
continue;
|
continue;
|
||||||
/* process every file (NB: ACTION_RECURSE is set in flags) */
|
/* process every file (NB: ACTION_RECURSE is set in flags) */
|
||||||
/*s =*/ recursive_action(nextFile, flags, fileAction, dirAction,
|
if (!recursive_action(nextFile, flags, fileAction, dirAction,
|
||||||
userData, depth + 1);
|
userData, depth + 1))
|
||||||
|
status = FALSE;
|
||||||
|
// s = recursive_action(nextFile, flags, fileAction, dirAction,
|
||||||
|
// userData, depth + 1);
|
||||||
free(nextFile);
|
free(nextFile);
|
||||||
//#define RECURSE_RESULT_ABORT 3
|
//#define RECURSE_RESULT_ABORT 3
|
||||||
// if (s == RECURSE_RESULT_ABORT) {
|
// if (s == RECURSE_RESULT_ABORT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user