Browse Source

fix {pty,tty}[p..]? creation; bug noted by crc@grand-central.yar.com

OPENBSD_2_2
deraadt 27 years ago
parent
commit
cc2888e5c6
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      src/etc/etc.mac68k/MAKEDEV

+ 8
- 3
src/etc/etc.mac68k/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.17 1997/09/07 20:29:12 dgregor Exp $
# $OpenBSD: MAKEDEV,v 1.18 1997/09/16 02:14:10 deraadt Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -72,8 +72,13 @@ add ()
hex ()
{
case $1 in
[0-9]) echo -n $1 ;;
1[0-5]) echo -n -e "\\$(( $1 + 131 ))" ;;
[0-9]) echo -n $1 ;;
10) echo -n a;;
11) echo -n b;;
12) echo -n c;;
13) echo -n d;;
14) echo -n e;;
15) echo -n f;;
esac
}


Loading…
Cancel
Save