On 2023/04/16 15:19, Martin Schröder wrote:
> After upgrade to 7.3:
>  --*- multitail 6.4.2 (C) 2003-2014 by folk...@vanheusden.com -*--
> 
> The following problem occured:
> -----------------------------
> do_load_config: error loading configfile '/etc/multitail.conf'
> If this is a bug, please report the following information:
> The last system call returned: 13 which means "Permission denied"
> [20230416T15:14:06+0200(106/15)] ms@wyvern 1002:~
> > l /etc/multitail.conf
> -rw-------  1 root  wheel  45040 Apr 16 14:33 /etc/multitail.conf
> 
> A
>    sudo chmod a+r /etc/multitail.conf
> fixed the problem.
> 
> Have I somehow misconfigured my system or is this a bug?
> 
> Best
>      Martin
> 

You probably ran pkg_add with a restrictive umask set.
If you do that, permissions on @sample files and some others
(e.g. /var/db/pkg) follow what the umask is set to.
This comes up every now and again.

Personally I would be quite happy for pkg_add/pkg_delete to
force a standard umask, but I think there was some objection when
I floated the diff before.

Index: OpenBSD/PkgAdd.pm
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm,v
retrieving revision 1.138
diff -u -p -r1.138 PkgAdd.pm
--- OpenBSD/PkgAdd.pm   29 Jul 2022 14:26:45 -0000      1.138
+++ OpenBSD/PkgAdd.pm   16 Apr 2023 13:31:30 -0000
@@ -1309,6 +1309,7 @@ sub main
 {
        my ($self, $state) = @_;
 
+       umask 0022;
        $state->progress->set_header('');
        $self->do_quirks($state);
 
Index: OpenBSD/PkgDelete.pm
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm,v
retrieving revision 1.48
diff -u -p -r1.48 PkgDelete.pm
--- OpenBSD/PkgDelete.pm        1 Feb 2022 16:54:09 -0000       1.48
+++ OpenBSD/PkgDelete.pm        16 Apr 2023 13:31:30 -0000
@@ -383,6 +383,7 @@ sub main
 {
        my ($self, $state) = @_;
 
+       umask 0022;
        if ($state->{exclude}) {
                my $names = {};
                for my $l (@{$state->{setlist}}) {

Reply via email to