diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-02 21:50:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-02 21:50:33 +0000 |
commit | 942ed037d0775dc3efd043e4911b1a001bf907b3 (patch) | |
tree | f093ee51e606f37fc8a524e291a8617c3f1b6d3f /etc | |
parent | f3f5b5d6d151636f6bb4892c54b8f0a3c87007e7 (diff) | |
download | pfsense-942ed037d0775dc3efd043e4911b1a001bf907b3.zip pfsense-942ed037d0775dc3efd043e4911b1a001bf907b3.tar.gz |
Close STDIN ($fp) handle before returning back to shell. Major doh's.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.initial.setlanip | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 7b609d4..e2f7aad 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -40,6 +40,7 @@ echo "\nEnter the new LAN IP address: "; $lanip = chop(fgets($fp)); if ($lanip === "") { + fclose($fp); exit(0); } } while (!is_ipaddr($lanip)); @@ -53,6 +54,7 @@ echo "Enter the new LAN subnet bit count: "; $lanbits = chop(fgets($fp)); if ($lanbits === "") { + fclose($fp); exit(0); } } while (!is_numeric($lanbits) || ($lanbits < 1) || ($lanbits > 31)); @@ -67,6 +69,7 @@ echo "Enter the start address of the client address range: "; $dhcpstartip = chop(fgets($fp)); if ($dhcpstartip === "") { + fclose($fp); exit(0); } } while (!is_ipaddr($dhcpstartip)); @@ -75,6 +78,7 @@ echo "Enter the end address of the client address range: "; $dhcpendip = chop(fgets($fp)); if ($dhcpendip === "") { + fclose($fp); exit(0); } } while (!is_ipaddr($dhcpendip)); @@ -115,4 +119,5 @@ Press ENTER to continue. EOD; fgets($fp); -?> + fclose($fp); +?>
\ No newline at end of file |