summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2012-11-05 08:07:10 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2012-11-05 08:07:10 +0000
commit08444a2df58aeb24fe13b887128b17b07d17ff18 (patch)
tree02d9ec635f28bbe4f2f70f49f462deb6b5a0dd92 /etc
parent4b739cc567a2551b6882c15a6ca612dda2ba5d8c (diff)
Run chown/chgrp iff the preceding mknod call worked; thus if if there's
actually something to chown/chgrp. ok todd@
Diffstat (limited to 'etc')
-rw-r--r--etc/MAKEDEV.mi10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/MAKEDEV.mi b/etc/MAKEDEV.mi
index f83e05e57c0..f663433d54d 100644
--- a/etc/MAKEDEV.mi
+++ b/etc/MAKEDEV.mi
@@ -1,7 +1,7 @@
define(COMM,`#')dnl
include(MAKEDEV.sub)dnl
dnl
-vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.80 2011/04/18 16:52:10 thib Exp $-})dnl
+vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.81 2012/11/05 08:07:09 jasper Exp $-})dnl
dnl
divert(1)dnl
{-#-}
@@ -181,19 +181,19 @@ M() {
mkl ${5-666} {-$-}1 {-$-}2 {-$-}3 {-$-}4
G={-$-}{6:-wheel}
[ "{-$-}7" ] && {
- MKlist[{-$-}{#MKlist[*]}]=";chown {-$-}7:{-$-}G {-$-}1"
+ MKlist[{-$-}{#MKlist[*]}]="&& chown {-$-}7:{-$-}G {-$-}1"
} || {
case $G in
wheel)
- [ {-$-}{#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
+ [ {-$-}{#whlist[*]} = 0 ] && whlist[0]="&& chgrp wheel"
whlist[{-$-}{#whlist[*]}]="$1"
;;
operator)
- [ {-$-}{#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
+ [ {-$-}{#oplist[*]} = 0 ] && oplist[0]="&& chgrp operator"
oplist[{-$-}{#oplist[*]}]="$1"
;;
*)
- MKlist[{-$-}{#MKlist[*]}]=";chgrp $G $1";
+ MKlist[{-$-}{#MKlist[*]}]="&& chgrp $G $1";
esac
}
return 0