mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 21:13:01 +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)
|
static void sys_update_conds(char *dir, char *name, uint32_t mask)
|
||||||
{
|
{
|
||||||
char fn[PATH_MAX];
|
|
||||||
char *cond;
|
char *cond;
|
||||||
|
|
||||||
paste(fn, sizeof(fn), dir, name);
|
cond = strstr(name, COND_BASE);
|
||||||
cond = strstr(fn, COND_BASE);
|
|
||||||
if (!cond)
|
if (!cond)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user