Reduce debug noise from run_parts() slightly

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-11-23 21:12:30 +01:00
1 parent a2ab45cad7
commit 67ea42c87b
1 file changed
+2 -1
+2 -1
View File
@@ -473,6 +473,7 @@ int run_parts(char *dir, char *cmd)
} }
if (!S_ISEXEC(st.st_mode) || S_ISDIR(st.st_mode)) { if (!S_ISEXEC(st.st_mode) || S_ISDIR(st.st_mode)) {
if (strcmp(name, ".") && strcmp(name, ".."))
dbg("Skipping %s ...", path); dbg("Skipping %s ...", path);
continue; continue;
} }
@@ -480,7 +481,7 @@ int run_parts(char *dir, char *cmd)
/* If the callee didn't supply a run_parts() argument */ /* If the callee didn't supply a run_parts() argument */
if (!cmd) { if (!cmd) {
/* Check if S<NUM>service or K<NUM>service notation is used */ /* 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])) if (name[0] == 'S' && isdigit(name[1]))
strlcat(path, " start", sizeof(path)); strlcat(path, " start", sizeof(path));
else if (name[0] == 'K' && isdigit(name[1])) else if (name[0] == 'K' && isdigit(name[1]))