From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Riesen Subject: Re: [PATCH] Do not use GUID on dir in git init --shared=all on FreeBSD 4.11p2 Date: Tue, 4 Mar 2008 22:46:22 +0100 Message-ID: <20080304214622.GD3295@steel.home> References: <20080303234406.GA28158@steel.home> <7v1w6rfhyn.fsf@gitster.siamese.dyndns.org> <20080304072519.GA3070@steel.home> <7vir02ap3b.fsf@gitster.siamese.dyndns.org> <20080304202047.GC3295@steel.home> <7vr6eq43te.fsf@gitster.siamese.dyndns.org> Reply-To: Alex Riesen Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Tue Mar 04 22:47:12 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JWeyV-0001Ip-Oy for gcvg-git-2@gmane.org; Tue, 04 Mar 2008 22:47:04 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752395AbYCDVq0 (ORCPT ); Tue, 4 Mar 2008 16:46:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752956AbYCDVq0 (ORCPT ); Tue, 4 Mar 2008 16:46:26 -0500 Received: from mo-p07-ob.rzone.de ([81.169.146.190]:34013 "EHLO mo-p07-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752395AbYCDVqZ (ORCPT ); Tue, 4 Mar 2008 16:46:25 -0500 X-RZG-CLASS-ID: mo07 X-RZG-AUTH: z4gQVF2k5XWuW3CculzxtoAegw== Received: from tigra.home (Faa57.f.strato-dslnet.de [195.4.170.87]) by post.webmailer.de (fruni mo6) (RZmta 16.8) with ESMTP id z07322k24KmTMv ; Tue, 4 Mar 2008 22:46:23 +0100 (MET) (envelope-from: ) Received: from steel.home (steel.home [192.168.1.2]) by tigra.home (Postfix) with ESMTP id 76F8F277BD; Tue, 4 Mar 2008 22:46:23 +0100 (CET) Received: by steel.home (Postfix, from userid 1000) id DE48756D24; Tue, 4 Mar 2008 22:46:22 +0100 (CET) Content-Disposition: inline In-Reply-To: <7vr6eq43te.fsf@gitster.siamese.dyndns.org> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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.