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