From 9bda2241018b6bfe1df1c199446009b2cd792997 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 2 Jun 2007 22:20:40 +0000 Subject: Close STDIN ($fp) handle before returning back to shell. Major doh's. --- etc/inc/config.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'etc/inc/config.inc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 2998955..a878223 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1439,6 +1439,7 @@ EOD; echo "\nEnter the LAN interface name or 'a' for auto-detection: "; $lanif = chop(fgets($fp)); if ($lanif === "") { + fclose($fp); return; } @@ -1512,7 +1513,7 @@ EOD; Error: you cannot assign the same interface name twice! EOD; - + fclose($fp); return; } } @@ -1584,6 +1585,8 @@ EOD; EOD; + fclose($fp); + if($g['booting']) return; -- cgit v1.1