Skip to content

Commit c69b9d6

Browse files
drjbarkerbrianmay
authored andcommitted
Fix broken string substitution from a765aa3
The changes in a765aa3 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’.
1 parent 2d92090 commit c69b9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshuttle/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def __init__(self, method_name, sudo_pythonpath):
197197
if platform.platform().startswith('OpenBSD'):
198198
elev_prefix = ['doas']
199199
else:
200-
elev_prefix = ['sudo', '-p', '[local %(eb)s] Password: ']
200+
elev_prefix = ['sudo', '-p', '[local sudo] Password: ']
201201
if sudo_pythonpath:
202202
elev_prefix += ['/usr/bin/env',
203203
'PYTHONPATH=%s' % python_path]

0 commit comments

Comments
 (0)