mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00: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 file changed
+1
-1
+1
-1
@@ -107,7 +107,7 @@ void devmon_add_cond(const char *cond)
|
|||||||
|
|
||||||
void devmon_del_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;
|
return;
|
||||||
|
|
||||||
drop_node(find_node(cond));
|
drop_node(find_node(cond));
|
||||||
|
|||||||
Reference in new issue
Block a user