From 67ea42c87baf6e233678df9dce90b5dc1a093a09 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 23 Nov 2022 21:09:22 +0100 Subject: [PATCH] Reduce debug noise from run_parts() slightly Signed-off-by: Joachim Wiberg --- src/exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/exec.c b/src/exec.c index 3c6534af..a725d952 100644 --- a/src/exec.c +++ b/src/exec.c @@ -473,14 +473,15 @@ int run_parts(char *dir, char *cmd) } if (!S_ISEXEC(st.st_mode) || S_ISDIR(st.st_mode)) { - dbg("Skipping %s ...", path); + if (strcmp(name, ".") && strcmp(name, "..")) + dbg("Skipping %s ...", path); continue; } /* If the callee didn't supply a run_parts() argument */ if (!cmd) { /* Check if Sservice or Kservice 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]))