From 63e7895905a1cc31c5b6881b4738cd04217adbc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 8 Oct 2020 19:43:19 +0200 Subject: 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`. --- sdn.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sdn.cpp') diff --git a/sdn.cpp b/sdn.cpp index fdbb1f7..ff1e397 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -861,8 +861,7 @@ fun run_program (initializer_list 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; } -- cgit v1.2.3