From c7a640f9c55dbe80a247f5dbdbaaf0ec35dd0475 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 Sep 2023 00:54:08 +0000 Subject: [PATCH] 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. --- t/search.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.47.2