mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-30 10:44:09 +03:00
ZTS: Use ksh and current environment for user_run
The current user_run often does not work as expected. Commands are run in a different shell, with a different environment, and all output is discarded. Simplify user_run to retain the current environment, eliminate eval, and feed the command string into ksh. Enhance the logging for user_run so we can see out and err. Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11185
This commit is contained in:
committed by
Tony Hutter
parent
5a397fda09
commit
acb4e7b0e1
@@ -33,6 +33,7 @@ export SYSTEM_FILES_COMMON='arp
|
||||
du
|
||||
echo
|
||||
egrep
|
||||
env
|
||||
expr
|
||||
false
|
||||
file
|
||||
@@ -117,7 +118,6 @@ export SYSTEM_FILES_FREEBSD='chflags
|
||||
compress
|
||||
diskinfo
|
||||
dumpon
|
||||
env
|
||||
fsck
|
||||
getextattr
|
||||
gpart
|
||||
|
||||
Reference in New Issue
Block a user