Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 1997 10:28:31 -0800 (PST)
From:      wilcox@nosc.mil
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2567: mknod minor device field overflow warning
Message-ID:  <199701231828.KAA00462@first.nosc.mil>
Resent-Message-ID: <199701231830.KAA03324@freefall.freebsd.org>

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

>Number:         2567
>Category:       bin
>Synopsis:       mknod doesn't warn when minor overlaps major
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 23 10:30:01 PST 1997
>Last-Modified:
>Originator:     Dwight R. Wilcox
>Organization:
NRaD Code 4122, San Diego, CA 92152
>Release:        FreeBSD 2.1.5-STABLE i386
>Environment:

	Nothing unusual relevant to this problem.

>Description:

	The /sbin/mknod command fails to warn the user when a minor
	device number field is given which has non-zero bits overlapping
	the major device number field.  For example:
	
	/sbin/mknod specialfile c 20 256
	
	will set the major device number to 21 and the minor device
	number to 0.

>How-To-Repeat:

	See description above.

>Fix:
	
	Verify that bits 8-15 of the minor device number are zero.

>Audit-Trail:
>Unformatted:



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