[PATCH] irmd: Fix lookup of program for autoexecution

  • From: Dimitri Staessens <dimitri.staessens@xxxxxxxx>
  • To: ouroboros@xxxxxxxxxxxxx
  • Date: Sun, 4 Feb 2018 14:46:30 +0100

Autoexecution failed because the lookup for the program was for the
wrong field of the progtable.

Signed-off-by: Dimitri Staessens <dimitri.staessens@xxxxxxxx>
---
 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 1e79413..e9446ad 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);
-- 
2.16.1


Other related posts:

  • » [PATCH] irmd: Fix lookup of program for autoexecution - Dimitri Staessens