On Tue, Mar 10, 2015 at 12:13:53PM GMT, Marc Espie wrote: > On Tue, Mar 10, 2015 at 10:54:34AM +0000, Stuart Henderson wrote: > > Moving to ports@ ... > > > > On 2015/03/10 11:32, Alessandro DE LAURENZIS wrote: > > > Hello Stuart, > > > > > > On Tue 10/03/2015 08:28, Stuart Henderson wrote: > > > > Is this while building the port, or just installing from packages? > > > > > > Installing from packages. Isn't that expected? > > > > Not sure. > > > > So: > > > > 1. Database files in /var/db/pkg are affected by umask ("pkg_add moo" with > > umask > > 077, then you can't "pkg_info moo" as a normal user) > > > > 2. Normal installed files from the package are not affected by umask > > > > 3. @sample'd files with an explicit @mode are not affected by umask > > > > 4. @sample'd files *without* an explicit mode (e.g. normal files installed > > in > > /etc) are affected by umask > > > > ... > > > > 1 could be argued either way, but I think current behaviour is ok. > > > > 2 and 3 seem correct to me > > > > 4 is surprising to me. Marc, is that intentional? > > I kindof think 4 should be forbidden or default'd to something sane, indeed.
Hi Marc, This bit me in the arse a year ago but I hadn't reported it as I was fairly new to OpenBSD back then. It would, indeed, be nice to have a sane default and able to use 'pkg_add' without issues - those that use, i.e. UMASK=077, that is :^) Regards, Raf