From 7e096fe7a3b7a777164bcf6be981826c5992fdfc Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 4 Feb 2018 14:46:30 +0100 Subject: irmd: Fix lookup of program for autoexecution Autoexecution failed because the lookup for the program was for the wrong field of the progtable. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/irmd/main.c b/src/irmd/main.c index 1e794139..e9446ade 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1449,8 +1449,8 @@ static struct irm_flow * flow_req_arr(pid_t pid, } reg_entry_set_state(re, REG_NAME_AUTO_EXEC); - a = prog_table_get_by_progn(&irmd.prog_table, - reg_entry_get_prog(re)); + a = prog_table_get(&irmd.prog_table, + reg_entry_get_prog(re)); if (a == NULL || (c_pid->pid = auto_execute(a->argv)) < 0) { reg_entry_set_state(re, REG_NAME_AUTO_ACCEPT); -- cgit v1.2.3