summaryrefslogtreecommitdiff
path: root/etc/etc.sparc/MAKEDEV
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>1997-04-22 07:05:13 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>1997-04-22 07:05:13 +0000
commit4388edd2a96895afb9d61cae1a8e0226985b39a1 (patch)
treecde0884321768645285fcb2e866a8cf279a1c6a3 /etc/etc.sparc/MAKEDEV
parentff83122d8b65fe9d8515ba6e04eef60e605a9008 (diff)
namespace polution bug fixed
Diffstat (limited to 'etc/etc.sparc/MAKEDEV')
-rw-r--r--etc/etc.sparc/MAKEDEV12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV
index b5d8c8f6194..16bbce51b25 100644
--- a/etc/etc.sparc/MAKEDEV
+++ b/etc/etc.sparc/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.17 1997/04/22 06:34:33 todd Exp $
+# $OpenBSD: MAKEDEV,v 1.18 1997/04/22 07:05:12 todd Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -74,7 +74,7 @@ this=$0
umask 77
case `uname -s` in
-SunOS) add ()
+SunOS|*) add ()
{
expr $1 + $2
}
@@ -301,7 +301,7 @@ fd*)
ccd*|sd*|xd*|xy*|cd*|vnd*)
umask 2
unit=`unt $i`
- if [ $unit -gt 15 ]
+ if [ 0$unit -gt 15 ]
then
echo bad disk unit: $i - $unit
exit 127
@@ -402,10 +402,10 @@ pty*)
n=0
while [ $n -lt 16 ]
do
- n=$name`hex $n`
+ nam=$name`hex $n`
rm -rf {tty,pty}$n
- mknod tty$n c 5 `add $offset $n`
- mknod pty$n c 6 `add $offset $n`
+ mknod tty$nam c 5 `add $offset $n`
+ mknod pty$nam c 6 `add $offset $n`
n=`add $n 1`
done
umask 77