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: perlcc and permissions


Baksik, Frederick (NM75) wrote:

> The command /usr/bin/perlcc is actually a perl script that performs
the -r
> check to test if it can open the file.

Thanks for explanation. I assumed that perlcc is a binary file. IIRC this
is a known issue with perl scripts.

> So when perl does the -r check, it is correct based on the POSIX
permissions
> because your UID is not the same as the Administrators UID you should
not be
> able to open the file.  But when any program actually attempts to open
the
> file windows ( or is it cygwin ) will let it be opened.

Strange that bash works in a different manner:

$ [ -r foo.pl ] && echo ok
ok

$ perl -e '-r "foo.pl" and print "ok" or print "failed"'
failed

Krzysztof Duleba



--
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]