Re: FORCE_DIR_SET_GID denied inside nix's build sandbox
- From
- Julien Moutinho <julm+git@sourcephile.fr>
- Date
- Oct 25, 2022, 22:40 UTC
- Message-ID
- <20221025224058.7kc4x43lkkncmak3@sourcephile.fr>
- In-Reply-To
- <xmqq7d0nonbw.fsf@gitster.g>
Le mar. 25 oct. 2022 09h54 -0700, Junio C Hamano a écrit :
Show 8 quoted lines
> But if you use 0600, then the group ownership should not matter, so > > /* Copy read bits to execute bits */ > new_mode |= (new_mode & 0444) >> 2; > if (new_mode & 060) > new_mode |= FORCE_DIR_SET_GID; > > might be what you want?
That change makes more sense indeed, and does relax the chmod enough to solve our problem when running public-inbox tests into nix's build sandbox.
Thank you!
PS: please let me know if you need me to submit a proper patch, otherwise I'm leaving this up to you if you don't mind.