Subject: mtree borked in -current?
To: None <port-sparc@NetBSD.ORG>
From: Rob Windsor <windsor@pobox.com>
List: port-sparc
Date: 08/07/1996 22:22:50
Simple test.

Take a look at /usr/src/etc/mtree/4.4BSD.dist (the file that mtree uses
when called from 'make install', actually 'make beforeinstall').  Verify
which dirs it touches in the /usr/src area, should be none.

now.. this is a painless test, rather cute as well (and we run this as
root during the daily security accounting?)

doing the following as root:

(r) grind:/usr/src#grep windsor /etc/passwd
windsor:*:1001:0:Rob Windsor:/home/windsor:/usr/local/bin/bash
(r) grind:/usr/src#grep nsrc /etc/group
nsrc:*:101:root,windsor
(r) grind:/usr/src#chown windsor.nsrc * 
(r) grind:/usr/src#ls -l | egrep ^drwx | wc -l
      17 
(r) grind:/usr/src#make beforeinstall
(cd /usr/src/etc && make DESTDIR=/ distrib-dirs)
install -d -o root -g wheel -m 755 /
mtree -def mtree/4.4BSD.dist -p // -u
usr/src/bin: 
        user (0, 1001, modified)
        gid (0, 101, modified)
        permissions (0755, 0775, modified)
usr/src/games: 
        user (0, 1001, modified)
        gid (0, 101, modified)
        permissions (0755, 0775, modified)

Why is mtree touching /usr/src/{bin,games} and none of the others?  Why
is it touching those two at all?

I currently can't verify if this is a /sparc problem or a generic mtree
problem.  Any takers?

-- Rob
----------------------------------------
Internet: windsor@pobox.com      Life: Rob@Sunnyvale.California.USA.Earth
"Da Web": http://pobox.com/~windsor/

"Ain't much distance 'tween a pat on the back and a kick in the pants."
    -- David Lee Roth (1990), `The Dogtown Shuffle'