From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14883 invoked by alias); 20 Apr 2012 13:08:02 -0000 Received: (qmail 14844 invoked by uid 22791); 20 Apr 2012 13:08:01 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pz0-f42.google.com (HELO mail-pz0-f42.google.com) (209.85.210.42) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Apr 2012 13:07:17 +0000 Received: by dang27 with SMTP id g27so15944638dan.15 for ; Fri, 20 Apr 2012 06:07:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.219.200 with SMTP id pq8mr12951917pbc.55.1334927237329; Fri, 20 Apr 2012 06:07:17 -0700 (PDT) Received: by 10.68.14.165 with HTTP; Fri, 20 Apr 2012 06:07:17 -0700 (PDT) In-Reply-To: <4F915E65.8070608@gmail.com> References: <4F915E65.8070608@gmail.com> Date: Fri, 20 Apr 2012 13:08:00 -0000 Message-ID: Subject: Re: Why /usr/bin/*.dll must be executable? From: =?UTF-8?Q?V=C3=A1clav_Zeman?= To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-04/txt/msg00430.txt.bz2 On 20 April 2012 15:02, De-Jian Zhao wrote: > Hi, > > When I type "cyg" and Tab, many executables starting with "cyg" are listed > (Display all 262 possibilities? (y or n) y). I find that many of them are > *.dll libraries under /usr/bin/. This is inconvenient to find the real > executable applications (*.exe). Since *.dll files are only libraries, th= ey > are not necessary to have the attribute of "x". Thus, I run the command > "chmod a-x /usr/bin/*.dll". Unexpectedly, cygwin is corrupted. I closed t= he > terminal and failed to restart Cygwin. I started my =C2=A0older version o= f Cygwin > (I did not deleted it after installing a new version), and added "x" to t= he > previous *.dll files. The dead Cygwin revived. > > I am confused why /usr/bin/*.dll should be executable. I thought they were > only library files. When I tried to run a dll file, bash says "cannot > execute binary file". Are there some hidden stories? DLLs are executables thus they need the +x bit. This is a Windows thing. >[...] --=20 VZ -- 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