From: Eric Wong Date: Sun, 22 Dec 2019 22:17:40 +0000 (+0000) Subject: t/search.t: update permissions check for OpenBSD X-Git-Tag: v1.3.0~189 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7b912e87e18c4a30be866e9abc764f71c61f29a2;p=public-inbox.git t/search.t: update permissions check for OpenBSD OpenBSD (tested 6.5 on amd64) seems to follow the same semantics as FreeBSD for S_ISGID, even if config.mak.uname in git.git doesn't say so. --- diff --git a/t/search.t b/t/search.t index c40e1363..b9aa995b 100644 --- a/t/search.t +++ b/t/search.t @@ -438,9 +438,9 @@ $ibx->with_umask(sub { my $all_mask = 07777; my $dir_mask = 02770; -# FreeBSD does not allow non-root users to set S_ISGID, so -# git doesn't set it, either (see DIR_HAS_BSD_GROUP_SEMANTICS in git.git) -if ($^O =~ /freebsd/i) { +# FreeBSD and apparently OpenBSD does not allow non-root users to set S_ISGID, +# so git doesn't set it, either (see DIR_HAS_BSD_GROUP_SEMANTICS in git.git) +if ($^O =~ /(?:free|open)bsd/i) { $all_mask = 0777; $dir_mask = 0770; }