unzip: "lchmod (file attributes) error: Not supported" when extracting symlinks
When I try extracting this file with the unzip
command from the unzip
package I get the following errors:
....
sonar-scanner-4.2.0.1873-linux/jre/legal/java.smartcardio/LICENSE -> ../java.base/LICENSE
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/java.xml.crypto/ADDITIONAL_LICENSE_INFO -> ../java.base/ADDITIONAL_LICENSE_INFO
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/java.xml.crypto/ASSEMBLY_EXCEPTION -> ../java.base/ASSEMBLY_EXCEPTION
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/java.xml.crypto/LICENSE -> ../java.base/LICENSE
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/jdk.internal.ed/ADDITIONAL_LICENSE_INFO -> ../java.base/ADDITIONAL_LICENSE_INFO
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/jdk.internal.ed/ASSEMBLY_EXCEPTION -> ../java.base/ASSEMBLY_EXCEPTION
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/jdk.internal.ed/LICENSE -> ../java.base/LICENSE
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/java.prefs/ADDITIONAL_LICENSE_INFO -> ../java.base/ADDITIONAL_LICENSE_INFO
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/java.prefs/ASSEMBLY_EXCEPTION -> ../java.base/ASSEMBLY_EXCEPTION
lchmod (file attributes) error: Not supported
sonar-scanner-4.2.0.1873-linux/jre/legal/java.prefs/LICENSE -> ../java.base/LICENSE
lchmod (file attributes) error: Not supported
After a quick google I think this is a compile error.
Steps to reproduce:
apk add unzip
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873-linux.zip
unzip sonar-scanner-cli-4.2.0.1873-linux.zip
I am using the latest alpine image of today with the tag 3.11. I hope this makes no difference.