diff options
author | Eric Wong <e@80x24.org> | 2019-12-22 22:17:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-24 03:48:32 +0000 |
commit | 7b912e87e18c4a30be866e9abc764f71c61f29a2 (patch) | |
tree | 220f5cec89ba23f60add01c806c47b145a4af2ac | |
parent | cd8dd7b08fddc7c2b5f218c3fcaa5dca5f9ad945 (diff) | |
download | public-inbox-7b912e87e18c4a30be866e9abc764f71c61f29a2.tar.gz |
OpenBSD (tested 6.5 on amd64) seems to follow the same semantics as FreeBSD for S_ISGID, even if config.mak.uname in git.git doesn't say so.
-rw-r--r-- | t/search.t | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |