From 00b2615a1b57bef1dd0da4b9f47b2f13ab166c35 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 7 Mar 2018 15:58:51 +0545 Subject: [PATCH] sudo: accept but discard -S option. fixes #108 --- mitogen/sudo.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mitogen/sudo.py b/mitogen/sudo.py index 6b8b86e7..5814e0a6 100644 --- a/mitogen/sudo.py +++ b/mitogen/sudo.py @@ -56,7 +56,11 @@ SUDO_OPTIONS = [ #(False, 'bool', '--preserve-groups', '-P') #(False, 'str', '--prompt', '-p') #(False, 'str', '--role', '-r') - #(False, 'str', '--stdin', '-S') + + # For now the password is always typed interactively on a TTY, so accept + # this option but do not pass it through. + (True, 'bool', '--stdin', '-S'), + #(False, 'str', '--shell', '-s') #(False, 'str', '--type', '-t') #(False, 'str', '--other-user', '-U')