Subject: Re: Found: bug that keeps the kernel from finding boot device
To: Makoto Fujiwara <makoto@ki.nu>
From: David Brownlee <abs@netbsd.org>
List: port-macppc
Date: 10/23/2001 20:02:34
	Would it make sense to strrchr(,'/') twice, then to strchr(,',')?

-- 
		David/absolute		-- www.netbsd.org: No hype required --


On Sun, 21 Oct 2001, Makoto Fujiwara wrote:

>
> From: Monroe Williams <monroe@criticalpath.com>
> Monroe> >        /* XXX Does this belong here, or device_register()? */
> Monroe> >       if ((p = strrchr(cbootpath, ',')) != NULL)
> Monroe> >               *p = 0;
>
> Monroe> truncates the boot path if any of the devices in the path have commas in
>
> As is in the comment lines, this part (or this functionality )
> is necessary to strip following line
>       /bandit@F2000000/gc@10/53c94@10000/sd@0,0/netbsd   (OF-1.x)
> into
>       /bandit@F2000000/gc@10/53c94@10000/sd@0
> this shape.
>
> So it can not be simply removed.
> ---
> Makoto Fujiwara
> http://www.ki.nu/software/NetBSD/iBook2/
>
>