diff options
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r-- | libbb/recursive_action.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index d27629829..72371963f 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c @@ -100,7 +100,7 @@ int recursive_action(const char *fileName, return FALSE; } status = TRUE; - while ((next = readdir(dir)) != NULL) { + while (status && (next = readdir(dir)) != NULL) { char *nextFile; nextFile = concat_subpath_file(fileName, next->d_name); |