Fixed the silly bug that caused BSDI's init to complain due to the paramters to
authorNate Willams <nate@FreeBSD.org>
Tue, 26 Oct 1993 21:59:44 +0000 (21:59 +0000)
committerNate Willams <nate@FreeBSD.org>
Tue, 26 Oct 1993 21:59:44 +0000 (21:59 +0000)
init not being setup correctly.

NetBSD:
date: 1993/07/10 03:25:03;  author: cgd;  state: Exp;  lines: +4 -2
handle the initflags problem in a simple (if twisted) way.
handle the initflags problem in a simple (if twisted) way.

sys/kern/init_main.c

index 9ecd7e4..4de6c4f 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *     from: @(#)init_main.c   7.41 (Berkeley) 5/15/91
  * SUCH DAMAGE.
  *
  *     from: @(#)init_main.c   7.41 (Berkeley) 5/15/91
- *     $Id$
+ *     $Id: init_main.c,v 1.7 1993/10/08 10:50:42 rgrimes Exp $
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -326,6 +326,8 @@ main()
                if (boothowto&RB_FASTBOOT)
                        *ip++ = 'f';
 #endif
                if (boothowto&RB_FASTBOOT)
                        *ip++ = 'f';
 #endif
+               if (ip == initflags + 1)
+                       *ip++ = '-';
                *ip++ = '\0';
 
                if (vm_allocate(&p->p_vmspace->vm_map, &addr,
                *ip++ = '\0';
 
                if (vm_allocate(&p->p_vmspace->vm_map, &addr,