mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to merge proc-lib.pl with master
This commit is contained in:
@@ -295,12 +295,15 @@ if (!$@) {
|
||||
open(STDERR, ">&".fileno($ttyfh));
|
||||
close($ttyfh); # Already dup'd
|
||||
if ($binary) {
|
||||
exec $cmd $binary;
|
||||
my @args = &split_quoted_string($cmd);
|
||||
my $args0 = $args[0];
|
||||
$args[0] = $binary;
|
||||
exec { $args0 } @args;
|
||||
}
|
||||
else {
|
||||
exec($cmd);
|
||||
}
|
||||
print "Exec failed : $!\n";
|
||||
print STDERR "Exec failed : $!\n";
|
||||
exit 1;
|
||||
}
|
||||
$ptyfh->close_slave();
|
||||
@@ -350,12 +353,15 @@ else {
|
||||
open(STDERR, ">&STDOUT");
|
||||
close($ptyfh);
|
||||
if ($binary) {
|
||||
exec $cmd $binary;
|
||||
my @args = &split_quoted_string($cmd);
|
||||
my $args0 = $args[0];
|
||||
$args[0] = $binary;
|
||||
exec { $args0 } @args;
|
||||
}
|
||||
else {
|
||||
exec($cmd);
|
||||
}
|
||||
print "Exec failed : $!\n";
|
||||
print STDERR "Exec failed : $!\n";
|
||||
exit 1;
|
||||
}
|
||||
close($ttyfh);
|
||||
|
||||
Reference in New Issue
Block a user