From 109d8826bd8a7df52708dc8bb6e73d7fd1250cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Tue, 10 Feb 2026 19:47:37 +0100 Subject: [PATCH] devmon: Fix deletion of conditions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only compare the beginning of the condition, not the whole condition name. Signed-off-by: Mattias Walström --- src/devmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devmon.c b/src/devmon.c index 28730f80..2341e86d 100644 --- a/src/devmon.c +++ b/src/devmon.c @@ -107,7 +107,7 @@ void devmon_add_cond(const char *cond) void devmon_del_cond(const char *cond) { - if (!cond || strcmp(cond, "dev/")) + if (!cond || strncmp(cond, COND_DEV, strlen(COND_DEV))) return; drop_node(find_node(cond));