From 2ec15e8d3b223d8f0945522540631b064fbb7f18 Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Fri, 22 Dec 2023 12:01:08 +1100
Subject: [PATCH] adapt to oblibs

---
 src/lib66/sanitize/sanitize_fdholder.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib66/sanitize/sanitize_fdholder.c b/src/lib66/sanitize/sanitize_fdholder.c
index b99a4a8c..c27e0af2 100644
--- a/src/lib66/sanitize/sanitize_fdholder.c
+++ b/src/lib66/sanitize/sanitize_fdholder.c
@@ -166,7 +166,7 @@ int sanitize_fdholder(resolve_service_t *res, ss_state_t *sta, uint32_t flag, ui
 
         for (; pos < tlen ; pos += strlen(t + pos) + 1) {
 
-            if (str_start_with(t + pos, SS_FDHOLDER_PIPENAME "r-")) {
+            if (!str_start_with(t + pos, SS_FDHOLDER_PIPENAME "r-")) {
                 /** only keep the reader, the writer is automatically created
                  * by the 66-fdholder-filler. see format of it */
                 if (!auto_stra(&list, t + pos, "\n"))
@@ -178,6 +178,7 @@ int sanitize_fdholder(resolve_service_t *res, ss_state_t *sta, uint32_t flag, ui
 
         auto_strings(file, socket, "/data/autofilled") ;
 
+        log_trace("create fdholder autofilled file") ;
         if (!openwritenclose_unsafe(file, list.s, list.len))
             log_warnusys_return(LOG_EXIT_ZERO, "write file: ", file) ;
 
-- 
GitLab