Bug 10306 - busybox-1.27.x unzip does not preserve executable bit
Summary: busybox-1.27.x unzip does not preserve executable bit
Status: RESOLVED WORKSFORME
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.27.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-11 10:47 UTC by john.frankish
Modified: 2017-09-11 16:15 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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