mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Close STDIN ($fp) handle before returning back to shell. Major doh's.
This commit is contained in:
parent
9c51b6f6bb
commit
119cd3afac
@ -1308,6 +1308,7 @@ EOD;
|
||||
echo "\nEnter the LAN interface name or 'a' for auto-detection: ";
|
||||
$lanif = chop(fgets($fp));
|
||||
if ($lanif === "") {
|
||||
fclose($fp);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1381,7 +1382,7 @@ EOD;
|
||||
Error: you cannot assign the same interface name twice!
|
||||
|
||||
EOD;
|
||||
|
||||
fclose($fp);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -1453,6 +1454,8 @@ EOD;
|
||||
|
||||
EOD;
|
||||
|
||||
fclose($fp);
|
||||
|
||||
if($g['booting'])
|
||||
return;
|
||||
|
||||
|
||||
@ -85,5 +85,5 @@
|
||||
echo "done.\n";
|
||||
echo "\nYour configuration has been moved to {$move_config_to_device}\n";
|
||||
touch("/tmp/config_moved");
|
||||
|
||||
fclose($fp);
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user