aboutsummaryrefslogtreecommitdiff
path: root/sudo_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-10-14 16:32:31 +0700
committerShulhan <ms@kilabit.info>2023-10-14 16:32:31 +0700
commitbf9c8226b4d187b5d2d938b8774ecc1bda3d0b35 (patch)
treedcb285bad69104b318aa0e0d0da9ac207d38b7d8 /sudo_test.go
parenta0c9e5e87e951df4d1bc86c6ccc2ed73dbe7f942 (diff)
downloadawwan-bf9c8226b4d187b5d2d938b8774ecc1bda3d0b35.tar.xz
all: refactoring ExecLocal to add sudo "-S" option when stdin is not-nil
Instead of adding the "-S" option before ExecLocal is called, we automatically added inside the ExecLocal, so the caller does not need to check or add the "-S" option. This makes all local statements ("#require", default, "#get!", "#put!") that is sudo works without any modification like we do previously in SudoCopy. While at it, we detach ExecLocal from Session, since the "*Session" receiver is never used inside their body.
Diffstat (limited to 'sudo_test.go')
0 files changed, 0 insertions, 0 deletions