From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3449 invoked by alias); 30 Nov 2011 22:46:17 -0000 Received: (qmail 3437 invoked by uid 22791); 30 Nov 2011 22:46:16 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Nov 2011 22:45:58 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pAUMjvmH020702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 30 Nov 2011 17:45:57 -0500 Received: from [10.3.113.136] (ovpn-113-136.phx2.redhat.com [10.3.113.136]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pAUMjv1Y004106 for ; Wed, 30 Nov 2011 17:45:57 -0500 Message-ID: <4ED6B224.6080702@redhat.com> Date: Wed, 30 Nov 2011 23:12:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: ash is wrong about [ -w Temp ], so rebaseall fails References: In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig1096E1621D18D99CBA2062AA" X-IsSubscribed: yes 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 X-SW-Source: 2011-11/txt/msg00485.txt.bz2 --------------enig1096E1621D18D99CBA2062AA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 822 On 11/30/2011 03:17 PM, Tim McDaniel wrote: > $ /bin/ash -c ' [ -w /Users/tmcdaniel/AppData/Local/Temp ] && echo yes > || echo no' > no >=20 > So bash and ash disagree on whether this Temp directory is writable. Known limitation in dash - it is going off of just st_mode bits instead of using faccessat() and honoring ACLs. My guess is that if you do 'getfacl /Users/tmcdaniel/AppData/Local/Temp' and 'id', you will find that your current uid and gid are not the owner of the directory, but do have an ACL granting write access to the directory anyway. I've been meaning to do a new build of dash (aka ash), and to force the use of faccessat as part of that build; I just haven't had the time to get to it yet. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig1096E1621D18D99CBA2062AA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 620 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJO1rIkAAoJEKeha0olJ0NqNZkH/3mYnNNYLN337qPtAl5Mg7ki VjM8ezJH6wKNl0UwYWCH+W+Tjo+BuzrCUvqze1kaz58IyQFjM/vR1n+CFmAqN/99 wPupIm4nDeYflGdFpNZI6D5MW+vJboO7kTfB27OUIbxQcSxcOqpspWq6+6frtJj0 xwHdxMydbiB1J2Vdy++m2JC2rd4Q2frydkIZGJlsbefewms3z2EP6FJtgCWLDXcT 9BSymcBEaZGF1wFhoEgkLVMJ2Icld02CgGpjQ5PYEizUTeNb+p7XA4fJWPl3g/Bb OAkBCR5DTDxfnF3ysALw9BmdwlHi1V4oFPtqcJ5RLzatP5qJwEvLVTd7tvRTQso= =F4UH -----END PGP SIGNATURE----- --------------enig1096E1621D18D99CBA2062AA--