Merge pull request #44 from snk33/patch-1

allow adminSudo plugin to read from stdin
This commit is contained in:
Stéphane Lesimple 2020-11-13 18:51:42 +01:00 committed by GitHub
commit 137305b562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;