From ff6194527d013ea0d385a598fddcdef85bcdbb4c Mon Sep 17 00:00:00 2001 From: Simon Halvorsen Date: Fri, 13 Mar 2026 14:20:42 +0100 Subject: [PATCH] CFE-4007: Fixed wording of premature error when changing into non-existant directory Ticket: CFE-4007 Changelog: Title Signed-off-by: Simon Halvorsen --- cf-agent/verify_files.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cf-agent/verify_files.c b/cf-agent/verify_files.c index d02b9c511b..cbb0bee563 100644 --- a/cf-agent/verify_files.c +++ b/cf-agent/verify_files.c @@ -469,6 +469,10 @@ static PromiseResult VerifyFilePromise(EvalContext *ctx, char *path, const Promi Log(LOG_LEVEL_ERR, "%s. There may be a symlink in the path that has a different " "owner from the owner of its target (security risk).", msg); } + else if (errno == ENOENT) + { + Log(LOG_LEVEL_INFO, "%s - Attempting to create...", msg); + } else { Log(LOG_LEVEL_ERR, "%s", msg);