Browse Source

fix major number for fd/*; felix reported the i386 flaw

OPENBSD_2_3
deraadt 27 years ago
parent
commit
53df287728
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/etc/etc.alpha/MAKEDEV
  2. +2
    -2
      src/etc/etc.i386/MAKEDEV
  3. +2
    -2
      src/etc/etc.mac68k/MAKEDEV

+ 2
- 2
src/etc/etc.alpha/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.29 1997/12/08 21:27:34 mickey Exp $
# $OpenBSD: MAKEDEV,v 1.30 1997/12/16 21:17:40 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@ -136,7 +136,7 @@ fd)
rm -f fd/*
mkdir fd > /dev/null 2>&1
n=0
(cd fd && while [ $n -lt 64 ]; do mknod $n c 24 $n; n="$(( $n + 1 ))"; done)
(cd fd && while [ $n -lt 64 ]; do mknod $n c 10 $n; n="$(( $n + 1 ))"; done)
chown -R root.wheel fd
chmod 555 fd
chmod 666 fd/*


+ 2
- 2
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.53 1997/12/08 21:27:39 mickey Exp $
# $OpenBSD: MAKEDEV,v 1.54 1997/12/16 21:17:42 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@ -166,7 +166,7 @@ fd)
rm -f fd/*
mkdir fd > /dev/null 2>&1
n=0
(cd fd && while [ $n -lt 64 ]; do mknod $n c 24 $n; n="$(( $n + 1 ))"; done )
(cd fd && while [ $n -lt 64 ]; do mknod $n c 22 $n; n="$(( $n + 1 ))"; done )
chown -R root.wheel fd
chmod 555 fd
chmod 666 fd/*


+ 2
- 2
src/etc/etc.mac68k/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.21 1997/12/08 21:27:41 mickey Exp $
# $OpenBSD: MAKEDEV,v 1.22 1997/12/16 21:17:44 deraadt Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -131,7 +131,7 @@ fd)
rm -f fd/*
mkdir fd > /dev/null 2>&1
n=0
(cd fd && while [ $n -lt 64 ]; do mknod $n c 24 $n; n=`add $n 1`; done)
(cd fd && while [ $n -lt 64 ]; do mknod $n c 21 $n; n=`add $n 1`; done)
chown -R root.wheel fd
chmod 555 fd
chmod 666 fd/*


Loading…
Cancel
Save