Subject: Re: strange permissions difference between /var/db/pkg and the
To: NetBSD Packages Technical Discussion List <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 04/21/1999 21:00:32
On Wed, 21 Apr 1999, Greg A. Woods wrote:
> The best solution I can see for the ownership problem is to have pkg_add
> simply do the equivalent of "chmod -R root.wheel /var/db/pkg/${PKGNAME}"
> just before it finishes.

Have you tested this?

I have an odd feeling that the files in pkgsrc are used for the tar-file,
NOT the ones in /var/db/pkg.

> As for fixing pkg_add so that it keeps all the right files, i.e.
> +INSTALL and +MTREE, in /var/db/pkg/, that looks simple -- just don't
> unlink() them and then if they exist: move_file(".", *_FNAME, LogDir);
> In fact they probably shouldn't be unlinked if they fail either.
> I could send-pr this, but without a patch -- it'll be after 1.4 before I
> get a chance to update my source tree to -current again and can easily
> make and *test* such patches.

Then wait. 
We're now aware of the fact, and are more than busy with 1.4 as well. :)

 - Hubert

Hubert Feyrer <>