This is the mail archive of the cygwin@cygwin.com 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: 1.5.5: opendir opens directory without `r' permissions.


On Wed, Nov 05, 2003 at 09:54:45AM -0500, Derek Robert Price wrote:
>This doesn't appear to be correct behaviour on most other UNIX
>platforms.  On most platforms the opendir fails and sets an errno that
>resolves to "Permission denied".  This can be illustrated with the
>following short script:
>
>~    mkdir test
>~    touch test/file
>~    chmod a= test
>~    ls test
>
>The `ls' will return a blank line under Cygwin bash.  On most platform
>`ls' will return:
>
>~    ls: test: Permission denied
>
>I don't think you'll need my cygcheck output to reproduce this, but say
>the word and I will send it.

I will add a patch to fix this but making cygwin work 100% like unix/linux
will be difficult since unix historically also recognizes the 'x' bit in
a directory to control access as well.  I'm not going to do that for cygwin,
though, since it would impose a burden on every file access.

Btw, I'm not asking for anyone to send email clarifying how linux deals
with directory protections.  I'm pretty clear on how it works and on the
difficulty level for getting this working on cygwin.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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