mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
devmon: Fix deletion of conditions
Only compare the beginning of the condition, not the whole condition name. Signed-off-by: Mattias Walström <lazzer@gmail.com>
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user