mirror of
https://github.com/webmin/webmin.git
synced 2026-09-14 17:40:40 +01:00
Fixed execute_command bug
This commit is contained in:
@@ -5675,7 +5675,7 @@ local $cmd = &translate_command($cmd);
|
||||
# Use ` operator where possible
|
||||
if (!$stdin && ref($stdout) && !$stderr) {
|
||||
$cmd = "($cmd)" if ($gconfig{'os_type'} ne 'windows');
|
||||
$$stdout = `$cmd >$null_file`;
|
||||
$$stdout = `$cmd 2>$null_file`;
|
||||
return $?;
|
||||
}
|
||||
elsif (!$stdin && ref($stdout) && $stdout eq $stderr) {
|
||||
|
||||
Reference in New Issue
Block a user