diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-12-28 20:23:10 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-12-28 20:23:10 +0000 |
commit | 6480d38f6f2679ffb890e69a02576426aba921f9 (patch) | |
tree | 91b813a73fe2b99a0b5f31f681f24659789d9260 /etc/inc | |
parent | 42739c1c251abc90a43bb19baba7b0576308e432 (diff) | |
download | pfsense-6480d38f6f2679ffb890e69a02576426aba921f9.zip pfsense-6480d38f6f2679ffb890e69a02576426aba921f9.tar.gz |
Fix failure on opening gettytab fir writing.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f222f81..7968b5b 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -999,7 +999,10 @@ function auto_login($status) { $gettytab = file_get_contents("/etc/gettytab"); $getty_split = split("\n", $gettytab); conf_mount_rw(); - $fd = fopen("/etc/gettytab", "w"); + $fd = false; + while (!$fd) { + $fd = fopen("/etc/gettytab", "w"); + } foreach($getty_split as $gs) { if(stristr($gs, ":ht:np:sp#115200") ) { if($status == true) { |