aboutsummaryrefslogtreecommitdiff
path: root/libbb/recursive_action.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r--libbb/recursive_action.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c
index 05ff5d84f..121a3dffd 100644
--- a/libbb/recursive_action.c
+++ b/libbb/recursive_action.c
@@ -93,6 +93,10 @@ int recursive_action(const char *fileName,
dir = opendir(fileName);
if (!dir) {
+ /* findutils-4.1.20 reports this */
+ /* (i.e. it doesn't silently return with exit code 1) */
+ /* To trigger: "find -exec rm -rf {} \;" */
+ bb_perror_msg("%s", fileName);
return FALSE;
}
status = TRUE;