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: UNZIP: Why don't .exe/.dll files get eXecute privs?


Here's an example:

CYGWIN:


c:\test>\cygwin\bin\unzip \dx4w801\dx4win_regexp.zip
Archive:  \dx4w801\dx4win_regexp.zip
  inflating: pcre3.dll
  inflating: regexp/freq1.txt
  inflating: regexp/qth1.txt
  inflating: Dx4win.exe

c:\test>ls -l
total 3296
-rw-r--r-- 1 reisert Domain Users 3229184 Aug 14 00:20 Dx4win.exe
-rw-r--r-- 1 reisert Domain Users  140288 Mar 17  2007 pcre3.dll
drwxr-xr-x 1 reisert Domain Users       0 Aug 14 10:57 regexp


GNUWIN32:

c:\test>unzip \dx4w801\dx4win_regexp.zip
Archive:  /dx4w801/dx4win_regexp.zip
  inflating: pcre3.dll
  inflating: regexp/freq1.txt
  inflating: regexp/qth1.txt
  inflating: Dx4win.exe

c:\test>ls -l
total 3296
-rwx------+ 1 reisert Domain Users 3229184 Aug 14 00:20 Dx4win.exe
-rwx------+ 1 reisert Domain Users  140288 Mar 17  2007 pcre3.dll
drwx------+ 1 reisert Domain Users       0 Aug 14 10:58 regexp





On Fri, Aug 14, 2009 at 10:43 AM, Jim Reisert
AD1C<jjreisert@alum.mit.edu> 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?
>
> Thanks - Jim
>
> --
> Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us
>



-- 
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us

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


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