]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/InboxWritable.pm
mda: use InboxWritable
[public-inbox.git] / lib / PublicInbox / InboxWritable.pm
index 5c11a36c27631e4b82bed1de1dabe222e41ef484..aa62132fe9a184e3700ec5a76ddafe7ff27793dd 100644 (file)
@@ -39,6 +39,7 @@ sub importer {
                        my $addr = $self->{-primary_address};
                        PublicInbox::Import->new($git, $name, $addr, $self);
                } else {
+                       $! = 78; # EX_CONFIG 5.3.5 local configuration error
                        die "unsupported inbox version: $v\n";
                }
        }
@@ -175,7 +176,7 @@ sub _read_git_config_perm {
 sub _git_config_perm {
        my $self = shift;
        my $perm = scalar @_ ? $_[0] : _read_git_config_perm($self);
-       return PERM_GROUP if (!defined($perm) || $perm eq '');
+       return PERM_UMASK if (!defined($perm) || $perm eq '');
        return PERM_UMASK if ($perm eq 'umask');
        return PERM_GROUP if ($perm eq 'group');
        if ($perm =~ /\A(?:all|world|everybody)\z/) {