]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/search.t: tweak dir group semantics for all *BSDs
authorEric Wong <e@80x24.org>
Thu, 7 Sep 2023 00:54:08 +0000 (00:54 +0000)
committerEric Wong <e@80x24.org>
Thu, 7 Sep 2023 05:42:38 +0000 (05:42 +0000)
NetBSD shares semantics with FreeBSD and OpenBSD, at least;
and presumably all their *BSD cousins behave the same way.

t/search.t

index ea5a2a5a444973a82556d275be068dbdd7358bec..8084c41bc99e07a2ee9bd051c96c1f85be9d6cdd 100644 (file)
@@ -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;
 }