delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/30/17:46:26

X-Recipient: archive-cygwin AT delorie DOT com
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
Message-ID: <4ED6B224.6080702@redhat.com>
Date: Wed, 30 Nov 2011 15:45:56 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ash is wrong about [ -w Temp ], so rebaseall fails
References: <Pine DOT NEB DOT 4 DOT 64 DOT 1111301606080 DOT 18777 AT panix2 DOT panix DOT com>
In-Reply-To: <Pine.NEB.4.64.1111301606080.18777@panix2.panix.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enig1096E1621D18D99CBA2062AA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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 AT redhat DOT 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"

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019