mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 01:13:37 +01:00
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’.
This commit is contained in:
parent
2d92090625
commit
c69b9d6f4b
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user