summaryrefslogtreecommitdiff
path: root/sbin/init
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-04-13 15:26:47 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-04-13 15:26:47 +0000
commite9b447ecf35877fed8f7336193d1c3ae5e576f83 (patch)
tree9ea38f61855fd18c9dc8aa63d8730519aef2f9fc /sbin/init
parented273363b5f96005fa813dc74b2498806f39604d (diff)
Use _PATH_DEV, not "/dev/"
Make init(8) call login_fbtab() correctly.
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 2715b80b338..0b8a6cb6a70 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.12 1998/03/03 01:15:13 deraadt Exp $ */
+/* $OpenBSD: init.c,v 1.13 1998/04/13 15:26:46 millert Exp $ */
/* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: init.c,v 1.12 1998/03/03 01:15:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: init.c,v 1.13 1998/04/13 15:26:46 millert Exp $";
#endif
#endif /* not lint */
@@ -1182,7 +1182,7 @@ collect_child(pid)
return;
clear_session_logs(sp);
- login_fbtab(sp->se_device, 0, 0);
+ login_fbtab(sp->se_device + sizeof(_PATH_DEV) - 1, 0, 0);
del_session(sp);
sp->se_process = 0;