setfacl fails to replace ACLs when given a pathname starting with a drive letter
Eric Blake
eblake@redhat.com
Wed Mar 10 22:51:00 GMT 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100310/44e30419/attachment.sig>
More information about the Cygwin
mailing list