summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-12 08:23:51 +0000
committerjkh <jkh@FreeBSD.org>1996-12-12 08:23:51 +0000
commit29d7f1c31842286de505e626253394a7df40547d (patch)
tree882af1647b58c70906b72f8c7dce11e231d3d911 /usr.sbin/sysinstall/system.c
parent7f054c1fb963f0800116d282835311a5a77e41a5 (diff)
downloadFreeBSD-src-29d7f1c31842286de505e626253394a7df40547d.zip
FreeBSD-src-29d7f1c31842286de505e626253394a7df40547d.tar.gz
Fix some bogons in my close() handling.
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r--usr.sbin/sysinstall/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index 579a856..3424070 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: system.c,v 1.67 1996/12/09 06:02:32 jkh Exp $
+ * $Id: system.c,v 1.68 1996/12/11 19:35:26 jkh Exp $
*
* Jordan Hubbard
*
@@ -300,7 +300,7 @@ systemCreateHoloshell(void)
extern int login_tty(int);
ioctl(0, TIOCNOTTY, NULL);
- for (i = getdtablesize(); i; i--)
+ for (i = getdtablesize(); i >= 0; --i)
close(i);
fd = open("/dev/ttyv3", O_RDWR);
ioctl(0, TIOCSCTTY, &fd);
OpenPOWER on IntegriCloud