Subject: Re: sun3 netboot problems
To: Jason Thorpe" , "DP <dp@mcs.net>
From: Parag Patel <parag@cgt.com>
List: tech-install
Date: 12/25/1996 14:20:42
> > wind
> >         root=10.0.2.17:/export/wind/root \
> >         swap=10.0.2.17:/export/wind/swap \
> >         domain=flannel.net
>
>Hmm... try either putting a "\" after "wind" or making it read:
>
>wind	root=10.0.2.17:/export/wind/root \
>	swap=10.0.2.17:/export/wind/swap \
>	domain=flannel.net

I had a similar problem with bootparamd on FreeBSD and spent some time 
debugging it.

The @#$%ing code uses scanf() to parse the config file.  The second form, 
with "wind root=..." all on one line, is required to get it to parse the 
file correctly.  The first with an additional back-slash won't cut it.

I have never seen any code that couldn't be dramatically improved by 
removing all references to scanf().


        -- Parag