Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 1999 18:17:02 -0500 (EST)
From:      adrian@ubegeeks.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/9934: patch to pnp.c
Message-ID:  <199902062317.SAA01829@thneed.ubergeeks.com>

next in thread | raw e-mail | index | archive | help

>Number:         9934
>Category:       kern
>Synopsis:       a hard coded string is incorrectly passed to pnp_readconf().
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb  6 15:20:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Filipi-Martin
>Release:        FreeBSD 3.0-STABLE i386
>Organization:
Ubergeeks Consulting
>Environment:

	cvsup'd as of 2/4/99.

>Description:

	The passing of '"fname"' as an argument to pnp_readconf() in the
	pnp_reload() function is very suspect given that 'fname' is a string
	argument to the function.

	This is in file /sys/boot/common/pnp.c.

>How-To-Repeat:

	

>Fix:
	
	Apply attached diff.

--- pnp.c.orig	Mon Jan 11 01:41:32 1999
+++ pnp.c	Sat Feb  6 18:09:02 1999
@@ -105,7 +105,7 @@
 	    pnp_readconf("/boot/pnpdata.local");
 	    pnp_readconf("/boot/pnpdata");
 	} else {
-	    if (pnp_readconf("fname")) {
+	    if (pnp_readconf(fname)) {
 		sprintf(command_errbuf, "can't read PnP information from '%s'", fname);
 		return(CMD_ERROR);
 	    }
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902062317.SAA01829>