Use safe syntax for running commands

feature/node-rewrite
Sven Slootweg 12 years ago
parent f5578b5ad3
commit 86f624e282

@ -13,7 +13,7 @@ except IndexError, e:
command = json.loads(command.decode('base64')) 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() data = pr.communicate()
pr.wait() pr.wait()

Loading…
Cancel
Save