Re: ls shows different permissions for the same file

2012-09-13 Thread Larry Hall (Cygwin)
On 9/13/2012 8:40 AM, Boemker, Tim wrote: On 9/12/2012 8:03 PM, Larry Hall wrote: No because with Windows paths Cygwin doesn't look at Windows ACLs. It just reports a default set of ugo permissions. Where does it get the default set of ugo permissions? Like I said before, they are hard-cod

RE: ls shows different permissions for the same file

2012-09-13 Thread Boemker, Tim
On 9/12/2012 8:03 PM, Larry Hall wrote: > No because with Windows paths Cygwin doesn't look at Windows ACLs. It > just reports a default set of ugo permissions. Where does it get the default set of ugo permissions? Thanks. -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: ls shows different permissions for the same file

2012-09-12 Thread Larry Hall (Cygwin)
On 9/12/2012 2:57 PM, Boemker, Tim wrote: Larry, Do you mean that, with a POSIX path, I get ACL-based permissions, but with Windows paths, I get just user-group-other permissions? Not quite. The POSIX path will give you the correct mapping of Windows ACLs into ugo plus any additional ACLS th

ls shows different permissions for the same file

2012-09-12 Thread Boemker, Tim
Larry, Do you mean that, with a POSIX path, I get ACL-based permissions, but with Windows paths, I get just user-group-other permissions? That sounds reasonable, but shouldn't they agree as far as they overlap? In the following example, for example, shouldn't they agree whether foo is writabl

Re: ls shows different permissions for the same file

2012-09-12 Thread Larry Hall (Cygwin)
On 9/12/2012 8:20 AM, Boemker, Tim wrote: ls reports different permissions for the same file, depending on whether I provide a Windows-form path or a UNIX-form path: $ /bin/ls -ldi c:/apps/amq-versions/amq.12.1.0-RC42/conf /cygdrive/c/apps/amq-versions/amq.12.1.0-RC42/conf 7318349394635879 drw