summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-02-04 14:46:30 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-02-05 14:17:46 +0100
commit7e096fe7a3b7a777164bcf6be981826c5992fdfc (patch)
tree03b8c979bc09ed018300694533421320d07e5ea2 /src/irmd/main.c
parent3db51adc7cceaf810dc8312ff95e9d8ccb96154b (diff)
downloadouroboros-7e096fe7a3b7a777164bcf6be981826c5992fdfc.tar.gz
ouroboros-7e096fe7a3b7a777164bcf6be981826c5992fdfc.zip
irmd: Fix lookup of program for autoexecution0.9.8
Autoexecution failed because the lookup for the program was for the wrong field of the progtable. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c4
1 files 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);