diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-02 22:20:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-02 22:20:40 +0000 |
commit | 9bda2241018b6bfe1df1c199446009b2cd792997 (patch) | |
tree | 784990b5315479e4f0435ff6c22157d5734241cc | |
parent | 3121018425bc40fea6936f76048eae9fb62707aa (diff) | |
download | pfsense-9bda2241018b6bfe1df1c199446009b2cd792997.zip pfsense-9bda2241018b6bfe1df1c199446009b2cd792997.tar.gz |
Close STDIN ($fp) handle before returning back to shell. Major doh's.
-rw-r--r-- | etc/inc/config.inc | 5 | ||||
-rwxr-xr-x | etc/rc.initial.store_config_to_removable_device | 2 |
2 files changed, 5 insertions, 2 deletions
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; diff --git a/etc/rc.initial.store_config_to_removable_device b/etc/rc.initial.store_config_to_removable_device index 8a74fcd..8733e98 100755 --- a/etc/rc.initial.store_config_to_removable_device +++ b/etc/rc.initial.store_config_to_removable_device @@ -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); ?>
\ No newline at end of file |