From 00ba99f2f6c945ca28ddfe416a9447bdf664063e Mon Sep 17 00:00:00 2001 From: des Date: Thu, 2 Jul 1998 07:39:01 +0000 Subject: Make sure the node count is an integer when mknod'ing pty, tty and vty. PR: misc/7124 --- etc/MAKEDEV | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/MAKEDEV') diff --git a/etc/MAKEDEV b/etc/MAKEDEV index b986cba..07f4e1e 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -107,7 +107,7 @@ # pci PCI configuration-space access from user mode # ipl ipfilter control devices (ipl, ipnat, ipstate, ipauth) # -# $Id: MAKEDEV,v 1.162 1998/03/27 04:19:30 peter Exp $ +# $Id: MAKEDEV,v 1.163 1998/03/27 04:35:10 peter Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH @@ -552,7 +552,7 @@ pty*) case $class in 0|1|2|3|4|5|6|7) umask 0 - eval `echo $offset $name | awk ' { b=$1; n=$2 } END { \ + eval `echo $offset $name | awk ' { b=0+$1; n=0+$2 } END { \ for (i = 0; i < 32; i++) { c = substr("0123456789abcdefghijklmnopqrstuv", i + 1, 1); \ printf("mknod tty%s%s c 5 %d; \ @@ -714,7 +714,7 @@ tw*) vty*) chr=12 units=`expr $i : 'vty\(.*\)'` - eval `echo ${chr} ${units} | awk ' { c=$1; n=$2 } END { + eval `echo ${chr} ${units} | awk ' { c=0+$1; n=0+$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 -- cgit v1.1