mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fix format module
This commit is contained in:
@@ -22,7 +22,7 @@ close(TEMP);
|
||||
open(FORMAT, "format -f $temp |");
|
||||
while(1) {
|
||||
local $rv = &wait_for(FORMAT, 'Specify', '\s+\d+\. (\S+) <(.*) cyl (\d+) alt (\d+) hd (\d+) sec (\d+)>\s*(\S*)', '\s+\d+\. (\S+) <drive type unknown>', 'space for more');
|
||||
if ($rv == 0) { last; }
|
||||
if ($rv <= 0) { last; }
|
||||
elsif ($rv == 1) {
|
||||
local $disk = { 'device' => "/dev/dsk/$matches[1]",
|
||||
'type' => $matches[2] eq 'DEFAULT' ?
|
||||
|
||||
@@ -1431,7 +1431,10 @@ undef($wait_for_input);
|
||||
if ($wait_for_debug) {
|
||||
print STDERR "wait_for(",join(",", @_),")\n";
|
||||
}
|
||||
$ha = $_[0];
|
||||
$ha = &callers_package($_[0]);
|
||||
if ($wait_for_debug) {
|
||||
print STDERR "File handle=$ha fd=",fileno($ha),"\n";
|
||||
}
|
||||
$codes =
|
||||
"my \$hit;\n".
|
||||
"while(1) {\n".
|
||||
|
||||
Reference in New Issue
Block a user