NetBSD shares semantics with FreeBSD and OpenBSD, at least;
and presumably all their *BSD cousins behave the same way.
---
 t/search.t | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/t/search.t b/t/search.t
index ea5a2a5a..8084c41b 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;
 }

Reply via email to