summaryrefslogtreecommitdiffstats
path: root/etc/etc.i386
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-07-02 07:39:01 +0000
committerdes <des@FreeBSD.org>1998-07-02 07:39:01 +0000
commit00ba99f2f6c945ca28ddfe416a9447bdf664063e (patch)
tree0f5543b1a5830bd348e82c9bfbfa64eee23ad1d3 /etc/etc.i386
parent0985b04caf5bc4c4a6585552c2873fd74e415c38 (diff)
downloadFreeBSD-src-00ba99f2f6c945ca28ddfe416a9447bdf664063e.zip
FreeBSD-src-00ba99f2f6c945ca28ddfe416a9447bdf664063e.tar.gz
Make sure the node count is an integer when mknod'ing pty, tty and vty.
PR: misc/7124
Diffstat (limited to 'etc/etc.i386')
-rw-r--r--etc/etc.i386/MAKEDEV6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index b986cba..07f4e1e 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/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
OpenPOWER on IntegriCloud