mirror of
https://github.com/ARM-software/devlib.git
synced 2025-09-23 04:11:54 +01:00
host and ssh: Fix sudo invocation
Add -k to sudo invocation to avoid using cached credentials. If cached credentials is used, sudo will not write a prompt again, leading to the stderr fixup code to remove a char from stderr output.
This commit is contained in:
committed by
Marc Bonnici
parent
d953377ff3
commit
5d342044a2
@@ -59,7 +59,7 @@ from devlib.connection import (ConnectionBase, ParamikoBackgroundCommand, PopenB
|
||||
SSHTransferManager)
|
||||
|
||||
|
||||
DEFAULT_SSH_SUDO_COMMAND = "sudo -p ' ' -S -- sh -c {}"
|
||||
DEFAULT_SSH_SUDO_COMMAND = "sudo -k -p ' ' -S -- sh -c {}"
|
||||
|
||||
|
||||
ssh = None
|
||||
|
Reference in New Issue
Block a user