www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_21,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4A8598AF.1080306@gmail.com> |
Date: | Fri, 14 Aug 2009 18:02:39 +0100 |
From: | Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: UNZIP: Why don't .exe/.dll files get eXecute privs? |
References: | <806a89db0908140943k3d5a9f41k559c45ec82fb8983 AT mail DOT gmail DOT com> |
In-Reply-To: | <806a89db0908140943k3d5a9f41k559c45ec82fb8983@mail.gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Jim Reisert AD1C wrote: > Something has been bugging me about Cygwin UNZIP for years. When I > unzip a file, the extracted .exe and .dll files no longer have execute > privs. I have to manually chmod +x them. This always occurs when I'm > in a DOS prompt and using the Cygwin unzip. > > The same unzip from http://gnuwin32.sourceforge.net doesn't have this problem. > > Why is Cygwin different? It's not: > admin AT ubik /tmp/unzip > $ cp /bin/ls.exe . > > admin AT ubik /tmp/unzip > $ ls -la > total 216 > drwxr-xr-x 1 DKAdmin None 0 Aug 14 17:59 . > drwxrwxrwt 1 DKAdmin None 90112 Aug 14 17:58 .. > -rwxr-xr-x 1 DKAdmin None 129536 Aug 14 17:59 ls.exe > > admin AT ubik /tmp/unzip > $ zip -m test.zip ls.exe > adding: ls.exe (deflated 51%) > > admin AT ubik /tmp/unzip > $ unzip -tvv test.zip > Archive: test.zip > testing: ls.exe OK > No errors detected in compressed data of test.zip. > > admin AT ubik /tmp/unzip > $ ls -la > total 152 > drwxr-xr-x 1 DKAdmin None 0 Aug 14 18:00 . > drwxrwxrwt 1 DKAdmin None 90112 Aug 14 17:58 .. > -rw-r--r-- 1 DKAdmin None 63625 Aug 14 18:00 test.zip > > admin AT ubik /tmp/unzip > $ unzip test.zip > Archive: test.zip > inflating: ls.exe > > admin AT ubik /tmp/unzip > $ ls -la > total 280 > drwxr-xr-x 1 DKAdmin None 0 Aug 14 18:00 . > drwxrwxrwt 1 DKAdmin None 90112 Aug 14 17:58 .. > -rwxr-xr-x 1 DKAdmin None 129536 Aug 14 17:59 ls.exe > -rw-r--r-- 1 DKAdmin None 63625 Aug 14 18:00 test.zip > > admin AT ubik /tmp/unzip > $ Can you show an example? cheers, DaveK -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |