From: Eric Wong Date: Thu, 7 Sep 2023 00:54:08 +0000 (+0000) Subject: t/search.t: tweak dir group semantics for all *BSDs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7a640f9c55dbe80a247f5dbdbaaf0ec35dd0475;p=thirdparty%2Fpublic-inbox.git t/search.t: tweak dir group semantics for all *BSDs NetBSD shares semantics with FreeBSD and OpenBSD, at least; and presumably all their *BSD cousins behave the same way. --- diff --git a/t/search.t b/t/search.t index ea5a2a5a4..8084c41bc 100644 --- a/t/search.t +++ b/t/search.t @@ -437,9 +437,10 @@ $ibx->with_umask(sub { my $all_mask = 07777; my $dir_mask = 02770; -# FreeBSD and apparently OpenBSD does not allow non-root users to set S_ISGID, +# FreeBSD, OpenBSD and NetBSD do 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) { +# Presumably all *BSDs behave the same way. +if ($^O =~ /\A.+bsd\z/i) { $all_mask = 0777; $dir_mask = 0770; }