about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--t/search.t6
1 files 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;
 }