From ff36ab26f0a7cc983b63e09f28e1a1129b2d58c4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 11 Nov 1994 19:05:37 +0000 Subject: (main): Always set `f' flag (signifying "fake" because we aren't a real native bootstrap). --- boot/boot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boot/boot.c b/boot/boot.c index 94d60ef2..bef7efb3 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -306,6 +306,7 @@ main (int argc, char **argv, char **envp) char *bootfile; char c; struct sigvec vec = { read_reply, 0, 0}; + char *newargs; privileged_host_port = task_by_pid (-1); master_device_port = task_by_pid (-2); @@ -334,6 +335,11 @@ main (int argc, char **argv, char **envp) bootdevice = argv[3]; } + newargs = malloc (strlen (bootstrap_args) + 2); + strcpy (newargs, bootstrap_args); + strcat (newargs, "f"); + bootstrap_args = newargs; + if (index (bootstrap_args, 'k')) boot_like_kernel = 1; else if (index (bootstrap_args, 'p')) -- cgit v1.2.3