diff --git a/lib/run_part.c b/lib/run_part.c index 884bbefa..1e4f154b 100644 --- a/lib/run_part.c +++ b/lib/run_part.c @@ -48,7 +48,7 @@ int run_parts (const char *directory, const char *name, const char *action) int execute_result; scanlist = scandir (directory, &namelist, 0, alphasort); - if (scanlist<0) { + if (scanlist<=0) { return (0); }