diff options
Diffstat (limited to 'libbb/run_parts.c')
-rw-r--r-- | libbb/run_parts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/run_parts.c b/libbb/run_parts.c index 0eb7660..607b841 100644 --- a/libbb/run_parts.c +++ b/libbb/run_parts.c @@ -111,7 +111,7 @@ extern int run_parts(char **args, const unsigned char test_mode, char **env) exitstatus = 1; } } - } + } else if (!S_ISDIR(st.st_mode)) { bb_error_msg("component %s is not an executable plain file", filename); exitstatus = 1; @@ -121,6 +121,6 @@ extern int run_parts(char **args, const unsigned char test_mode, char **env) free(filename); } free(namelist); - + return(exitstatus); } |