Date: Wed, 28 Jul 1999 14:47:20 +0200 (CEST) From: zgabor@CoDe.hu To: FreeBSD-gnats-submit@freebsd.org Subject: conf/12850: bug in 3.x's new i386 bootloader Message-ID: <199907281247.OAA00539@CoDe.hu>
index | next in thread | raw e-mail
>Number: 12850
>Category: conf
>Synopsis: an interesting bug in the 3.x series' new i386 bootloader
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 28 06:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Zahemszky Gabor
>Release: FreeBSD 3.2-RELEASE i386
>Organization:
CoDe Kft.
>Environment:
>Description:
In the file: /usr/src/sys/i386/boot/common/pnp.c, in the pnp_reload
function, at line 108, there is a bug: (by the way, this file hasn't got any
version info, it's on my 3.2-R i386 machine)
the function has only one parameter: the filename, (char *) fname; from which
file we need to reload some information. In the function, there are three
pnp_readconf() calls, the first two are with constant strings ("/boot/xxx1",
and "/boot/xxx2" - I cannot remember), and the third, with the parameter:
pnp_readconf( fname ). But in the file, there is:
pnp_readconf( "fname" ).
--------------^-----^
So with it, we cannot use another config file, as the code tested that name:
"fname". (But on the error report, it reports the normal filename - fname.)
>How-To-Repeat:
vi /usr/src/sys/i386/boot/common/pnp.c
108G
>Fix:
substitute "fname" with fname :-)
f"x;x (a'la vi)
By, Gabor Zahemszky
ZGabor at CoDe dot HU
-----
#!/bin/ksh
Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z ;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907281247.OAA00539>
