From 86f624e28262d73192ad3d21329028d8611633a1 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 11 Dec 2012 01:28:40 +0100 Subject: [PATCH] Use safe syntax for running commands --- runhelper/runhelper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runhelper/runhelper b/runhelper/runhelper index 22b9a04..464c50a 100644 --- a/runhelper/runhelper +++ b/runhelper/runhelper @@ -13,7 +13,7 @@ except IndexError, e: command = json.loads(command.decode('base64')) -pr = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) +pr = subprocess.Popen(["sudo"] + command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) data = pr.communicate() pr.wait()