mwan3: "use" action: run process via `exec` and handle whitespace
authorLars Kruse <devel@sumpfralle.de>
Mon, 6 May 2024 10:09:56 +0000 (12:09 +0200)
committerRosen Penev <rosenp@gmail.com>
Sun, 23 Jun 2024 18:20:26 +0000 (11:20 -0700)
commitd3c2f7625c21439cf2579b4b4c43029459b27206
treec3293862d90efce271a1a2ab1d317f3e1f451774
parent2b49711d43de2b91043b5dd4d8e5576cee9743dd
mwan3: "use" action: run process via `exec` and handle whitespace

Previously the "use" command had the following shortcomings:
* a subprocess was created instead of replacing the shell process
* whitespace in arguments was not handled correctly

Implementation detail:
In shell context the `"$@"` expression should be used (instead of `$*`).
This allows the safe handling of arguments containing whitespace.

Closes: #20001
Signed-off-by: Lars Kruse <devel@sumpfralle.de>
net/mwan3/files/usr/sbin/mwan3