mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-18 03:11:36 +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'):
|
if platform.platform().startswith('OpenBSD'):
|
||||||
elev_prefix = ['doas']
|
elev_prefix = ['doas']
|
||||||
else:
|
else:
|
||||||
elev_prefix = ['sudo', '-p', '[local %(eb)s] Password: ']
|
elev_prefix = ['sudo', '-p', '[local sudo] Password: ']
|
||||||
if sudo_pythonpath:
|
if sudo_pythonpath:
|
||||||
elev_prefix += ['/usr/bin/env',
|
elev_prefix += ['/usr/bin/env',
|
||||||
'PYTHONPATH=%s' % python_path]
|
'PYTHONPATH=%s' % python_path]
|
||||||
|
Loading…
Reference in New Issue
Block a user