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: Why /usr/bin/*.dll must be executable?

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

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.



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:
Unsubscribe info:

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