Date: Fri, 2 Jan 1998 09:16:31 -0500 (EST) From: taob@netcom.ca To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/5411: /dev/MAKEDEV reverse mknod arguments for vty* target Message-ID: <199801021416.JAA12428@risc.org> Resent-Message-ID: <199801021420.GAA03948@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 5411 >Category: misc >Synopsis: /dev/MAKEDEV reverse mknod arguments for vty* target >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 2 06:20:01 PST 1998 >Last-Modified: >Originator: Brian Tao >Organization: Netcom Canada >Release: FreeBSD 3.0-980101-SNAP i386 >Environment: 3.0-980101-SNAP default installation. >Description: 3.0-980101-SNAP creates /dev/ttyv* entries with the wrong major/minor device numbers. >How-To-Repeat: # cd /dev # ./MAKEDEV vty8 # ls -l crw------- 1 root wheel 0, 12 Jan 2 08:20 ttyv0 crw------- 1 root wheel 1, 12 Jan 2 08:52 ttyv1 crw------- 1 root wheel 2, 12 Jan 2 08:52 ttyv2 crw------- 1 root wheel 3, 12 Jan 2 08:52 ttyv3 crw------- 1 root wheel 4, 12 Jan 2 08:52 ttyv4 crw------- 1 root wheel 5, 12 Jan 2 08:52 ttyv5 crw------- 1 root wheel 6, 12 Jan 2 08:52 ttyv6 crw------- 1 root wheel 7, 12 Jan 2 08:20 ttyv7 >Fix: Reverse the order of the mknod arguments for vty: *** MAKEDEV Fri Jan 2 09:10:49 1998 --- MAKEDEV.orig Thu Jan 1 05:09:31 1998 *************** *** 696,702 **** units=`expr $i : 'vty\(.*\)'` eval `echo ${chr} ${units} | awk ' { c=$1; n=$2 } END { for (i = 0; i < n; i++) ! printf("mknod ttyv%01x c %d %d;", i, c, i); }'` ln -fs ttyv0 vga # XXX X still needs this pccons relic ;; --- 696,702 ---- units=`expr $i : 'vty\(.*\)'` eval `echo ${chr} ${units} | awk ' { c=$1; n=$2 } END { for (i = 0; i < n; i++) ! printf("mknod ttyv%01x c %d %d;", i, i, c); }'` ln -fs ttyv0 vga # XXX X still needs this pccons relic ;; >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801021416.JAA12428>