diff options
author | Joseph Barker <j.barker@leeds.ac.uk> | 2019-10-27 12:12:57 +0900 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2019-10-27 14:47:55 +1100 |
commit | c69b9d6f4bcb0a7016ef5927493daf4a8654cefb (patch) | |
tree | 0d96e13fbce479ac21d2a4e673ea12ce2b8f2533 | |
parent | 2d9209062536178420a9c38cae84f181dc2d3cb6 (diff) |
Fix broken string substitution from a765aa32
The changes in a765aa32 removed a more complex pieced of code for parsing which sudo command to use. The %(eb)s no longer refers to any variable and is directly printed to the command line.
%(eb)s is now replaced with ‘sudo’.
-rw-r--r-- | sshuttle/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py index 044998d..2f157e2 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -197,7 +197,7 @@ class FirewallClient: if platform.platform().startswith('OpenBSD'): elev_prefix = ['doas'] else: - elev_prefix = ['sudo', '-p', '[local %(eb)s] Password: '] + elev_prefix = ['sudo', '-p', '[local sudo] Password: '] if sudo_pythonpath: elev_prefix += ['/usr/bin/env', 'PYTHONPATH=%s' % python_path] |