This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ash is wrong about [ -w Temp ], so rebaseall fails


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]