Subject: Re: CVS commit: src/distrib/common
To: Alan Barrett <apb@cequrux.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: source-changes
Date: 05/05/2004 16:25:47
--G2d+m75Tjo442KmM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 04, 2004 at 08:48:46AM +0200, Alan Barrett wrote:
  | On Tue, 04 May 2004, Luke Mewburn wrote:
  | > Modified Files:
  | > 	src/distrib/common: Makefile.makedev
  | >=20
  | > Log Message:
  | > Remove "./dev type=3Ddir" entry from generated devices.spec, as it
  | > causes the ownership of ${.OBJDIR}/work/dev to be used in the image
  | > instead of that from the earlier entry in work.spec.
  |=20
  | I think it's a bug that "mtree -C" does not merge multiple lines
  | for the same file.
  |=20
  | For example, given
  |=20
  |     mtree -C -K all -f - <<EOF
  |     . type=3Ddir
  |     ./foo type=3Ddir uid=3D123 tags=3Dtag1
  |     ./foo type=3Ddir tags=3Dtag2
  |     EOF
  |=20
  | I would expect the output to be
  |=20
  |     . type=3Ddir
  |     ./foo type=3Ddir uid=3D123 tags=3Dtag1,tag2
  |=20
  | bit it is actually
  |=20
  |     . type=3Ddir
  |     ./foo type=3Ddir tags=3Dtag2


That's actually by (current) design.

I have a (private) patch that enabled "merging" of entries
that don't have children (i.e, populated directories), that
I whipped up for testing out solutions to the "using symlinks
instead of directories" issue that various people run into
with /etc/mtree/special.  I should chase that up again.

--G2d+m75Tjo442KmM
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAmIjrpBhtmn8zJHIRAuaTAJ91SaIPlC2hs3XOm9VMpfBqcuQ8HQCdF0CH
qkeIqu+Cu2KtOSNVt+cU0fo=
=P2Cn
-----END PGP SIGNATURE-----

--G2d+m75Tjo442KmM--