Hello, here is a patch that adds the -X option to /usr/sbin/mtree. This option is described in the man page as follows:
"The specified file contains fnmatch(3) patterns matching files to be excluded from the specification, one to a line." The code is taken from NetBSD's mtree. Also at least FreeBSD and Mac OS X have the same option available. I have been using the patch in 4.7 and it seems to work fine for me. I hope one of you can check that it is OK and commit into OpenBSD CVS. If you have further questions, cc me, as I don't subscribe to tech. Thanks, Teemu [demime 1.01d removed an attachment of type application/octet-stream which had a name of mtree-exclude-patch]
