Browse Source

Removing files is handled by M(), and setting the group to operator as

well, so no need to do that on our own in dodisk().  ok todd@ deraadt@
OPENBSD_3_9
otto 19 years ago
parent
commit
8618362234
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      src/etc/MAKEDEV.mi

+ 3
- 5
src/etc/MAKEDEV.mi View File

@ -1,7 +1,7 @@
define(COMM,`#')dnl
include(MAKEDEV.sub)dnl
dnl
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.74 2005/10/04 07:39:37 otto Exp $-})dnl
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.75 2005/10/04 18:11:10 otto Exp $-})dnl
dnl
divert(1)dnl
{-#-}
@ -138,15 +138,13 @@ dodisk()
{
[ "$DEBUG" ] && set -x
n=Add(Mult(${5}, ${7:-16}), ${6}) count=0
RMlist="$RMlist {-$-}1{-$-}2? r{-$-}1{-$-}2?"
[ 0$7 -ne 8 ] && l="i j k l m n o p"
for d in a b c d e f g h $l
do
M {-$-}1{-$-}2$d b {-$-}3 Add($n, $count) 640
M r{-$-}1{-$-}2$d c {-$-}4 Add($n, $count) 640
M {-$-}1{-$-}2$d b {-$-}3 Add($n, $count) 640 operaror
M r{-$-}1{-$-}2$d c {-$-}4 Add($n, $count) 640 operator
let count=count+1
done
MKlist="$MKlist;chown root:operator {-$-}1{-$-}2? r{-$-}1{-$-}2?"
}
dnl
dnl dodisk2(name, unit, blkmaj, chrmaj, unit, off[, stepping])


Loading…
Cancel
Save