From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72648 invoked by alias); 28 Jan 2016 14:31:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 72630 invoked by uid 89); 28 Jan 2016 14:31:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-92.4 required=5.0 tests=BAYES_50,FAKE_REPLY_C,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=sk:myusern, myusername, D*xyz.org, myhostname X-HELO: calimero.vinschen.de Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Jan 2016 14:31:42 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 34CE7A80389; Thu, 28 Jan 2016 15:31:40 +0100 (CET) Date: Thu, 28 Jan 2016 15:52:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: chmod failed: Invalid argument [was: git clone fails with: error: chmod on config.lock failed: Invalid argument] Message-ID: <20160128143140.GA27369@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20160128132310.GA18626@calimero.vinschen.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-01/txt/msg00421.txt.bz2 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1893 Rainer, please make sure your mailer doesn't break threading. I tweaked the "In-Reply-To" now to return to the original thread on the mailing list. Thank you. On Jan 28 14:44, Rainer Blome wrote: > Christopher Cobb wrote on Thu, 28 Jan 2016 01:27:16 +0100: > > Or maybe chmod is broken, like it is on my machine > [...] > $ git init > error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid arg= ument > error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid arg= ument > error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid arg= ument > error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid arg= ument > Initialized empty Git repository in /cygdrive/c/base/bar/.git/ > ---- > The problem appears when Git tries to `chmod config.lock`. Sounds > like a mechanism to protect `.git/config`, so let's see what > happens if I try to use `git config` to modify that file: >=20 > ---- > git config user.email myusername@xyz.org > error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid arg= ument > ---- >=20 Can you please run the same again under strace, e.g., $ strace -o git.trace git config user.email myusername@xyz.org and send the git.trace file? Also, please send the icacls output for the directory "bar" and the directory ".git". What's weird here is the EINVAL error. I can't reproduce this on my machine yet, but if I get more info I might be able to do so. > $ icacls . > . myhostname\myusername:(F) > myhostname\None:(RX) > Everyone:(RX) > myhostname\myusername:(I)(OI)(CI)(F) It's not a permission problem per se. There's no "Permission denied" message, just an "Invalid argument". I just fail to see why this happens... Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWqiZMAAoJEPU2Bp2uRE+gTSsQAKPEq+MJXD6CL86kKngTUHha +/BVK7AGrbHrvzQ2+hyKSF8w7FRohd1NShGY/G/4QiSebzA2wDEOub6GPAvxChGC oWN7DX+8MzonH5ow4aGH0LcXdJb7azI0YeXEl2mnU7uTE+fAlaMjoxl2x1CGitsW UJItn0AUxkCRBesZLCVInT8iER5LN/DkGzrUFO828puyO4qzZx04WmCAzqlCAer6 UBU31qg8KJCMIZbg2IOMXHH8baJmkzgPy+EN0q2C1xEX33yAy/iKLwzS4+/hQeDx RNcTQF1OI5yZfWINwJc7RQdnBWZWmSxBGUjYoxaWg7+pcED5MeiZLLTKH8Z77GRW zirqsdWXX+OyYp42ZDGX10FR1s4czlw1PzwUADI7MaylonrpcsRNRrInt1lVI/k6 f0sGlLmdyp8iQnFrNM134/QZimTvt9LDhe9s0bZMLlaXtAJvOALrYOC8S+8QY+2H JkqtOrBuvaVQSVfmsM6UqVOCEbtHxWX9g6NSyDlC0Et/zKhg6vlUsP7fNzIKUn4j zyNX17hC6GgubZp9ffduOTCiqVaEFjLG6T3AdBgUaTj2WFOMFkKpsiy4WCk1ghdB +MjD0JXP9sEabAHxJKcej2+vcdK/dFtjCAAobLeWbtSlKaUv/3mSEoCrXxq5r8B/ PysIDPumLPsZn76s9tql =vMJk -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--