From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D63431F4B9 for ; Sun, 22 Dec 2019 22:17:41 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/4] t/search.t: update permissions check for OpenBSD Date: Sun, 22 Dec 2019 22:17:40 +0000 Message-Id: <20191222221740.17114-5-e@80x24.org> In-Reply-To: <20191222221740.17114-1-e@80x24.org> References: <20191222221740.17114-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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. --- t/search.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }