[PATCH] rpcd: Add support for plugin command input via argv[3] ($3)

Louis_Hampton at SERCOMM.COM Louis_Hampton at SERCOMM.COM
Wed Nov 11 12:49:16 EST 2020


This does not disable the current method of using plugin command
arguments (stdin), only adding the new feature.

Signed-off-by: Louis Hampton <louis_hampton at sercomm.com>
---
 plugin.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugin.c b/plugin.c
index b0315dc..f12b212 100644
--- a/plugin.c
+++ b/plugin.c
@@ -229,6 +229,7 @@ rpc_plugin_call(struct ubus_context *ctx, struct ubus_object *obj,
 	c->argv[0] = c->path;
 	c->argv[1] = "call";
 	c->argv[2] = c->method;
+	c->argv[3] = c->input;
 
 	rv = rpc_exec(c->argv, rpc_plugin_call_stdin_cb,
 	              rpc_plugin_call_stdout_cb, rpc_plugin_call_stderr_cb,
-- 
2.29.2




More information about the openwrt-devel mailing list