summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2012-11-05 08:07:09 +0000
committerjasper <jasper@openbsd.org>2012-11-05 08:07:09 +0000
commitc68ed997dca559638cd3f915dbf2245b9b40d195 (patch)
treeefad8fc862a37b802a9c44949ede282b60379be9
parentSome systems give ENETUNREACH when trying to add the 'standard' (diff)
downloadwireguard-openbsd-c68ed997dca559638cd3f915dbf2245b9b40d195.tar.xz
wireguard-openbsd-c68ed997dca559638cd3f915dbf2245b9b40d195.zip
Run chown/chgrp iff the preceding mknod call worked; thus if if there's
actually something to chown/chgrp. ok todd@
-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