From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: [PATCH] t/lib-gpg: adjust permissions for gnupg 2.1 Date: Tue, 2 Dec 2014 19:05:53 -0500 Message-ID: <20141203000553.GA28969@peff.net> References: <547DB6C3.5010704@drmicha.warpmail.net> <9c28f16c677bbc774e5b8dfc79b6ffe2c55d1720.1417527514.git.git@drmicha.warpmail.net> <20141202210753.GD23461@peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Michael J Gruber , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Wed Dec 03 01:06:07 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XvxSC-0004Ij-58 for gcvg-git-2@plane.gmane.org; Wed, 03 Dec 2014 01:06:00 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933410AbaLCAF4 (ORCPT ); Tue, 2 Dec 2014 19:05:56 -0500 Received: from cloud.peff.net ([50.56.180.127]:47496 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932722AbaLCAF4 (ORCPT ); Tue, 2 Dec 2014 19:05:56 -0500 Received: (qmail 5310 invoked by uid 102); 3 Dec 2014 00:05:56 -0000 Received: from Unknown (HELO peff.net) (10.0.1.1) by cloud.peff.net (qpsmtpd/0.84) with SMTP; Tue, 02 Dec 2014 18:05:56 -0600 Received: (qmail 20333 invoked by uid 107); 3 Dec 2014 00:05:57 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.84) with SMTP; Tue, 02 Dec 2014 19:05:57 -0500 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Tue, 02 Dec 2014 19:05:53 -0500 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Tue, Dec 02, 2014 at 03:57:50PM -0800, Junio C Hamano wrote: > Wait. After doing this, > > $ mkdir -p src/a && >src/b 2>src/a/c && chmod a-w src/b src/a/c > $ cp -R src dst > $ ls -lR dst > > dst/b and dst/a/c are 0440 (with umask 0027, which makes src/b and > src/a/c also 0440, which is copied with "cp -R"). Who is running that chmod and why? I know you are trying to simulate "somehow they lost their 'w' bit" here, but what is that "somehow"? Git does not track write-bits. So any git checkout should always have the bit set, no? And likewise would any tarball generated by git-archive. Does tar lose it on extraction? I would not think it would do so, short of a broken umask. Confused... -Peff