From: Heikki Orsila Subject: Re: [PATCH] Make core.sharedRepository more generic (version 2) Date: Tue, 15 Apr 2008 03:43:10 +0300 Message-ID: <20080415004310.GI31039@zakalwe.fi> References: <20080412195754.GA15091@zakalwe.fi> <7v3apo7zfg.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: Heikki Orsila , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Tue Apr 15 02:44:00 2008 connect(): Connection refused 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 1JlZHB-0004gB-9P for gcvg-git-2@gmane.org; Tue, 15 Apr 2008 02:43:57 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758084AbYDOAnM (ORCPT ); Mon, 14 Apr 2008 20:43:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758060AbYDOAnM (ORCPT ); Mon, 14 Apr 2008 20:43:12 -0400 Received: from zakalwe.fi ([80.83.5.154]:43705 "EHLO zakalwe.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758032AbYDOAnL (ORCPT ); Mon, 14 Apr 2008 20:43:11 -0400 Received: by zakalwe.fi (Postfix, from userid 1023) id 1AD392C331; Tue, 15 Apr 2008 03:43:10 +0300 (EEST) Content-Disposition: inline In-Reply-To: <7v3apo7zfg.fsf@gitster.siamese.dyndns.org> User-Agent: Mutt/1.5.11 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Mon, Apr 14, 2008 at 05:08:03PM -0700, Junio C Hamano wrote: > > + * of git. Note, we use octal numbers. > > */ > > - sprintf(buf, "%d", shared_repository); > > + sprintf(buf, "0%o", shared_repository); > > Unconditionally doing this makes the resulting repository unusable by git > 1.5.5 and older, even when the user wanted to use the bog standard "git > init --shared". You can limit the extent of damage if you continue > writing PERM_GROUP and PERM_EVERYBODY out as 1 and 2, and use the new > octal notation only when the user used the settings allowed only with new > git. I submitted a new patch that should address all the points. Heikki