plugins: sys: no need to compose path, name is already absolute path

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-05-31 13:58:30 +02:00
parent 473116f603
commit 2641256254
+1 -3
View File
@@ -43,11 +43,9 @@ static int sys_add_path(struct iwatch *iw, char *path)
static void sys_update_conds(char *dir, char *name, uint32_t mask)
{
char fn[PATH_MAX];
char *cond;
paste(fn, sizeof(fn), dir, name);
cond = strstr(fn, COND_BASE);
cond = strstr(name, COND_BASE);
if (!cond)
return;