Reduce debug noise from run_parts() slightly
@@ -473,6 +473,7 @@ int run_parts(char *dir, char *cmd)
}
if (!S_ISEXEC(st.st_mode) || S_ISDIR(st.st_mode)) {
+ if (strcmp(name, ".") && strcmp(name, ".."))
dbg("Skipping %s ...", path);
continue;
}
@@ -480,7 +481,7 @@ int run_parts(char *dir, char *cmd)
/* If the callee didn't supply a run_parts() argument */
if (!cmd) {
/* Check if S<NUM>service or K<NUM>service notation is used */
- dbg("Checking if %s is a sysvinit startstop script ...", name);
+// dbg("Checking if %s is a sysvinit startstop script ...", name);
if (name[0] == 'S' && isdigit(name[1]))
strlcat(path, " start", sizeof(path));
else if (name[0] == 'K' && isdigit(name[1]))
