plugins/python/pyhelpers: have a default sudo_printf function

Adapted the default sudo_printf from sudoers plugin to be able to print
errors before plugin open() gets called. (This is used by the multiple io
plugin loading to display error for too much plugin load.)

Since this makes us always have a sudo_log, I have removed the logic about
whether it is available or not.
This commit is contained in:
Robert Manner
2020-01-23 13:59:50 +01:00
committed by Todd C. Miller
parent 74f559155a
commit d67c64bb37
6 changed files with 43 additions and 16 deletions

View File

@@ -0,0 +1 @@
sudo: loading more than 8 sudo python IO plugins is not supported