ash is wrong about [ -w Temp ], so rebaseall fails
Eric Blake
eblake@redhat.com
Wed Nov 30 23:12:00 GMT 2011
On 11/30/2011 03:17 PM, Tim McDaniel wrote:
> $ /bin/ash -c ' [ -w /Users/tmcdaniel/AppData/Local/Temp ] && echo yes
> || echo no'
> no
>> 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.
--
Eric Blake eblake@redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20111130/a07442bd/attachment.sig>
More information about the Cygwin
mailing list