From: Alex Riesen Date: Tue, 04 Mar 2008 21:46:22 GMT Subject: Re: [PATCH] Do not use GUID on dir in git init --shared=all on FreeBSD 4.11p2 Message-ID: <20080304214622.GD3295@steel.home> In-Reply-To: <7vr6eq43te.fsf@gitster.siamese.dyndns.org> Junio C Hamano, Tue, Mar 04, 2008 21:44:29 +0100: > Alex Riesen writes: > > > It does not allow changing the bit to a non-root user. > > This fixes t1301-shared-repo.sh on the platform. > > ... > > > diff --git a/path.c b/path.c > > index af27161..6f09ba2 100644 > > --- a/path.c > > +++ b/path.c > > @@ -282,8 +282,10 @@ int adjust_shared_perm(const char *path) > > : (shared_repository == PERM_EVERYBODY > > ? (S_IXGRP|S_IXOTH) > > : 0)); > > +#if !defined(__FreeBSD__) || (__FreeBSD__ > 4) > > if (S_ISDIR(mode)) > > mode |= S_ISGID; > > +#endif > > As usual, please do something like > Right. Will do.