Why /usr/bin/*.dll must be executable?

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Fri Apr 20 17:46:00 GMT 2012


On 4/20/2012 1:37 PM, De-Jian Zhao wrote:
> On 2012-4-21 1:29, Larry Hall (Cygwin) wrote:
>> On 4/20/2012 1:25 PM, Nellis, Kenneth wrote:
>>> From: Corinna Vinschen
>>>> Windows requires the x bit for DLLs to be loadable as executable code
>>>> into the address space of a process. As Václav wrote, it's a Windows
>>>> thing.
>>>
>>> So, I had to play with "chmod -x cyg*.dll" and, of course, it
>>> totally hosed Cygwin. I recovered by reinstalling from scratch
>>> only after realizing that ATTRIB did not have an option to re-
>>> establish X--we're talking XP here. So, as this is a Windows
>>> thing, wondering how, through Windows, I could restore execute
>>> access to the DLLs.
>>
>> What's wrong with "chmod +x cyg*.dll"?
>>
>
> It doesn't work any more. You cannot restart a new terminal, either. You
> will be trapped here.

Ah, I didn't realize that Ken did this in /bin.  You could use cacls in
this case as an alternative to reinstalling.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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



More information about the Cygwin mailing list