mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-04 20:14:22 +08:00
allow adminSudo plugin to read from stdin
add expects_stdin to the execute call so an admin will be able to replay session from another account
This commit is contained in:
parent
a0ce5947f2
commit
7685114cfd
1 changed files with 1 additions and 1 deletions
|
@ -68,6 +68,6 @@ OVH::Bastion::syslogFormatted(
|
|||
|
||||
osh_warn("ADMIN SUDO: $self, you'll now impersonate $sudoAs, this has been logged.");
|
||||
|
||||
$fnret = OVH::Bastion::execute(cmd => \@cmd, noisy_stdout => 1, noisy_stderr => 1);
|
||||
$fnret = OVH::Bastion::execute(cmd => \@cmd, noisy_stdout => 1, noisy_stderr => 1, expects_stdin => 1);
|
||||
|
||||
osh_exit $fnret;
|
||||
|
|
Loading…
Add table
Reference in a new issue