Subject: misc/6736: a few mtree inconsistencies with distribution
To: None <gnats-bugs@gnats.netbsd.org>
From: Soren S. Jorvang <soren@t.dk>
List: netbsd-bugs
Date: 01/05/1999 22:49:12
>Number: 6736
>Category: misc
>Synopsis: a few mtree inconsistencies with distribution
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 5 14:05:01 1999
>Last-Modified:
>Originator: Soren S. Jorvang
>Organization:
Soren
>Release: NetBSD-current as of today
>Environment:
System: NetBSD 1.3I
>Description:
>From a fresh i386 19981207 install:
Checking special files and directories.
etc/mtree/special:
permissions (0600, 0444)
etc/sendmail.cf:
permissions (0644, 0444)
etc/fstab:
permissions (0644, 0444)
usr/include:
user (3, 0)
gid (7, 0)
I don't really see the need for having /etc/mtree/special be 0600,
but it should match mtree/* in any case.
>How-To-Repeat:
>Fix:
--- src/usr.sbin/sendmail/cf/cf/Makefile.orig Tue Jan 5 22:29:27 1999
+++ src/usr.sbin/sendmail/cf/cf/Makefile Tue Jan 5 22:29:42 1999
@@ -46,7 +46,7 @@
depend:
distribution:
- ${INSTALL} -c -o root -g wheel -m 444 netbsd-proto.cf \
+ ${INSTALL} -c -o root -g wheel -m 644 netbsd-proto.cf \
${DESTDIR}/etc/sendmail.cf
# this is overkill, but....
--- src/etc/Makefile.orig Tue Jan 5 22:32:38 1999
+++ src/etc/Makefile Tue Jan 5 22:32:40 1999
@@ -146,7 +146,7 @@
${DESTDIR}/var/games/larn/lscore12.0
${INSTALL} -c -o games -g games -m 664 /dev/null \
${DESTDIR}/var/games/larn/playerids
- (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+ (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
fstab.* ${DESTDIR}/etc)
(cd ${DESTDIR}/dev; ./MAKEDEV all)
(cd ../usr.bin/mail; ${MAKE} distribution)
--- src/etc/mtree/special.orig Tue Jan 5 22:22:06 1999
+++ src/etc/mtree/special Tue Jan 5 22:31:23 1999
@@ -41,7 +41,7 @@
monthly type=file mode=0644 uname=root gname=wheel
monthly.conf type=file mode=0644 uname=root gname=wheel
mtree type=dir mode=0755 uname=root gname=wheel
-special type=file mode=0600 uname=root gname=wheel
+special type=file mode=0644 uname=root gname=wheel
.. #mtree
named.boot type=file mode=0644 uname=root gname=wheel optional
netstart type=file mode=0644 uname=root gname=wheel
@@ -89,7 +89,7 @@
hide type=dir mode=0750 uname=root gname=games ignore optional
.. #usr/games/hide
.. #usr/games
-include type=dir mode=0755 uname=bin gname=bin ignore
+include type=dir mode=0755 uname=root gname=wheel ignore
.. #usr/include
lib type=dir mode=0755 uname=root gname=wheel ignore
.. #usr/lib
>Audit-Trail:
>Unformatted: