Bug 10306

Summary: busybox-1.27.x unzip does not preserve executable bit
Product: Busybox Reporter: john.frankish
Component: OtherAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.27.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description john.frankish 2017-09-11 10:47:42 UTC
busybox-1.27.x unzip does not preserve executable bit, whereas busybox-1.24.2 unzip does preserve the bit.

$ /bin/busybox
BusyBox v1.27.1 (2017-08-10 13:51:41 UTC) multi-call binary.

$ /usr/bin/unzip gsoap_2.8.45.zip
$ ls -l gsoap-2.8/configure
-rw-r--r--    1 tc       staff       230368 Sep 11 14:36 gsoap-2.8/configure

$ /bin/busybox
BusyBox v1.24.2 (2016-05-16 13:28:30 UTC) multi-call binary.

$ /usr/bin/unzip gsoap_2.8.45.zip
$ ls -l gsoap-2.8/configure
-rwxr-xr-x    1 tc       staff       230368 Sep 11 14:46 gsoap-2.8/configure
Comment 1 Denys Vlasenko 2017-09-11 14:28:39 UTC
Works for me with

CONFIG_UNZIP=y
CONFIG_FEATURE_UNZIP_CDF=y
Comment 2 john.frankish 2017-09-11 16:15:14 UTC
Ah - CONFIG_FEATURE_UNZIP_CDF was not present in 1.24.2

With it enabled, things work as expected - thanks