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: setfacl fails to replace ACLs when given a pathname starting with a drive letter


On 03/10/2010 03:42 PM, Francis Litterio wrote:
> This gets stranger.  Watch this:
> 
>   $ /bin/ls -l /cygdrive/c/temp/xyz
>   -rwx------+ 1 littef Domain Users 6714 Mar  1 15:07 /cygdrive/c/temp/xyz
>   $ /bin/ls -l c:/temp/xyz
>   -rw-r--r-- 1 littef Domain Users 6714 Mar  1 15:07 c:/temp/xyz
> 
> Notice the '+' indicating additional ACLs on the file when a UNIX pathname is
> used, but the '+' is missing when a drive-letter is used.  This also did not
> used to happen.  It is as if the presence of drive letters is suppressing
> awareness of ACLs within the Cygwin layer.
> 
> Anyone know if this was this done on purpose?

Yes, this is on purpose.  Use of a drive letter says that you DON'T want
POSIX path processing, therefore, you are also giving up ACL processing.
 Moral of the story - don't expect drive letters to do what you want.
Use POSIX paths.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
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]