From 8618362234377d86745080e45e0f13f4b555e796 Mon Sep 17 00:00:00 2001 From: otto <> Date: Tue, 4 Oct 2005 18:11:10 +0000 Subject: [PATCH] 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@ --- src/etc/MAKEDEV.mi | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/etc/MAKEDEV.mi b/src/etc/MAKEDEV.mi index 4335ec6d..312e95a5 100644 --- a/src/etc/MAKEDEV.mi +++ b/src/etc/MAKEDEV.mi @@ -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])