aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--actions.c4
-rw-r--r--gluten.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/actions.c b/actions.c
index 4cef920..1eb50f1 100644
--- a/actions.c
+++ b/actions.c
@@ -215,7 +215,7 @@ int do_actions(struct action actions[], unsigned int n_actions, int pid,
resp_fd.id = id;
resp_fd.flags |= SECCOMP_ADDFD_FLAG_SEND;
resp_fd.newfd = actions[i].inj.newfd;
- resp_fd.srcfd = actions[i].inj.old;
+ resp_fd.srcfd = actions[i].inj.oldfd;
resp_fd.flags |= SECCOMP_ADDFD_FLAG_SETFD;
if (send_inject_target(&resp_fd, notifyfd) == -1)
return -1;
@@ -223,7 +223,7 @@ int do_actions(struct action actions[], unsigned int n_actions, int pid,
case A_INJECT:
resp_fd.id = id;
resp_fd.newfd = actions[i].inj.newfd;
- resp_fd.srcfd = actions[i].inj.old;
+ resp_fd.srcfd = actions[i].inj.oldfd;
resp_fd.flags |= SECCOMP_ADDFD_FLAG_SETFD;
if (send_inject_target(&resp_fd, notifyfd) == -1)
return -1;
diff --git a/gluten.h b/gluten.h
index c9f6600..c6cac3c 100644
--- a/gluten.h
+++ b/gluten.h
@@ -72,7 +72,7 @@ struct act_return {
struct act_inject {
uint32_t newfd;
- uint32_t old;
+ uint32_t oldfd;
};
struct action {