Diff below sets the owner for the /etc/localtime, /etc/rmt, /var/tmp
and /sys symlinks and for the /var/sysmerge/etc.tgz tarball.
This is the last of the noperm related pending M's in my tree.
Ok?
natano
Index: etc/Makefile
===================================================================
RCS file: /cvs/src/etc/Makefile,v
retrieving revision 1.430
diff -u -p -r1.430 Makefile
--- etc/Makefile 3 Sep 2016 13:37:40 -0000 1.430
+++ etc/Makefile 10 Sep 2016 18:30:28 -0000
@@ -154,7 +154,9 @@ distribution-etc-root-var: distrib-dirs
${INSTALL} -c -o root -g wheel -m 644 *.pub \
${DESTDIR}/etc/signify
ln -fs ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
+ chown -h root:wheel ${DESTDIR}/etc/localtime
ln -fs /usr/sbin/rmt ${DESTDIR}/etc/rmt
+ chown -h root:wheel ${DESTDIR}/etc/rmt
${INSTALL} -c -o root -g wheel -m 644 minfree \
${DESTDIR}/var/crash
${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
@@ -206,6 +208,7 @@ distribution-etc-root-var: distrib-dirs
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 ${RCDAEMONS} \
${DESTDIR}/etc/rc.d
cd ${DESTDIR}/var; ln -fs ../tmp
+ chmod -h root:wheel ${DESTDIR}/var/tmp
touch ${DESTDIR}/var/sysmerge/etcsum
cd ${DESTDIR}/ && \
sort ${.CURDIR}/../distrib/sets/lists/etc/{mi,md.${MACHINE}} | \
@@ -213,6 +216,7 @@ distribution-etc-root-var: distrib-dirs
cd ${DESTDIR}/ && \
sort ${.CURDIR}/../distrib/sets/lists/etc/{mi,md.${MACHINE}} | \
pax -w -d | gzip -9 > ${DESTDIR}/var/sysmerge/etc.tgz
+ chown root:wheel ${DESTDIR}/var/sysmerge/etc.tgz
distribution:
exec ${SUDO} ${MAKE} distribution-etc-root-var
@@ -227,6 +231,7 @@ distrib-dirs:
${INSTALL} -d -o root -g wsrc -m 775 ${DESTDIR}/usr/src; \
fi
cd ${DESTDIR}/; ln -fhs usr/src/sys sys
+ chmod -h root:wheel ${DESTDIR}/sys
.ifndef RELEASEDIR
release: