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?


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@ubik /tmp/unzip
> $ cp /bin/ls.exe  .
> 
> admin@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@ubik /tmp/unzip
> $ zip -m test.zip ls.exe
>   adding: ls.exe (deflated 51%)
> 
> admin@ubik /tmp/unzip
> $ unzip -tvv test.zip
> Archive:  test.zip
>     testing: ls.exe                   OK
> No errors detected in compressed data of test.zip.
> 
> admin@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@ubik /tmp/unzip
> $ unzip test.zip
> Archive:  test.zip
>   inflating: ls.exe
> 
> admin@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@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


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