summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/system.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-09 06:02:36 +0000
committerjkh <jkh@FreeBSD.org>1996-12-09 06:02:36 +0000
commitc493900657fe7c2b8b5f9f5cb441086d10c18467 (patch)
treec397ac2f0ca96773e57d858dac092400ce2f74d9 /usr.sbin/sysinstall/system.c
parent74990d366dbe0839d7499dfbd9fd48630e07aa5c (diff)
downloadFreeBSD-src-c493900657fe7c2b8b5f9f5cb441086d10c18467.zip
FreeBSD-src-c493900657fe7c2b8b5f9f5cb441086d10c18467.tar.gz
Add Joerg's user management screen for David Nugent's pw(8) program, something
which will also need to be brought in before this screen will work. Add some commentary about how the slip startup code is bogus. Steal Joerg's loop for more properly closing all files and graft it into the EHS startup. My loop was functional but more bogus.
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 c6580ab..86e3a04 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.65 1996/10/01 04:56:34 jkh Exp $
+ * $Id: system.c,v 1.66 1996/10/01 12:13:29 jkh Exp $
*
* Jordan Hubbard
*
@@ -292,7 +292,7 @@ systemCreateHoloshell(void)
struct termios foo;
extern int login_tty(int);
- for (i = 0; i < 64; i++)
+ for (i = getdtablesize(); i; i--)
close(i);
DebugFD = fd = open("/dev/ttyv3", O_RDWR);
ioctl(0, TIOCSCTTY, &fd);
OpenPOWER on IntegriCloud