Let the caller decide how to launch helpers
In the end, we don't need to impose any policy on it, and it removes a level of quoting, as well as an `eval`.
This commit is contained in:
3
sdn.cpp
3
sdn.cpp
@@ -861,8 +861,7 @@ fun run_program (initializer_list<const char*> list, const string &filename) {
|
||||
for (auto program : list)
|
||||
if ((found = program))
|
||||
break;
|
||||
g.ext_helper = "/bin/sh -c " +
|
||||
shell_escape (string (found) + " " + shell_escape (filename));
|
||||
g.ext_helper = found + (" " + shell_escape (filename));
|
||||
g.quitting = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user