mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 13:02:37 +07:00
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:
+1
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user