Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2001 21:01:52 -0800 (PST)
From:      todd.showalter@home.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/25761: Off-by-one error in MAKEDEV wrt. pass(4) device.
Message-ID:  <200103130501.f2D51qG87757@freefall.freebsd.org>

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

>Number:         25761
>Category:       misc
>Synopsis:       Off-by-one error in MAKEDEV wrt. pass(4) device.
>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:   Mon Mar 12 21:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Todd Showalter
>Release:        4.2-STABLE
>Organization:
>Environment:
FreeBSD ryoko.darkstar.org 4.2-STABLE FreeBSD 4.2-STABLE #0: Sun Feb 11 23:32:27 GMT 2001     todd@ryoko:/usr/src/sys/compile/Ryoko  i386

>Description:
If you:

> su
# cd /dev
# MAKEDEV pass4

    You only get /dev/pass0 - /dev/pass3; I noticed this because tosha
wouldn't access my cdrom drive.
>How-To-Repeat:

>Fix:
UNTESTED!

Change the CAM passthrough code in MAKEDEV from:

        while [ $i -lt $units ]; do
to
        while [ $i -le $units ]; do

    As I understand what's going on, this is the Right Thing.

>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?200103130501.f2D51qG87757>