diff --git a/meta/recipes-extended/unzip/unzip/fix-symlink.patch b/meta/recipes-extended/unzip/unzip/fix-symlink.patch new file mode 100644 index 00000000000..0121ad83ec2 --- /dev/null +++ b/meta/recipes-extended/unzip/unzip/fix-symlink.patch @@ -0,0 +1,15 @@ +--- a/process.c.sav 2013-06-09 12:08:57.070392264 +0200 ++++ b/process.c 2013-06-09 12:10:08.641696988 +0200 +@@ -1751,6 +1751,12 @@ + = (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11); + #endif + ++#ifdef SYMLINKS ++ /* Initialize the symlink flag, may be set by the platform-specific ++ mapattr function. */ ++ G.pInfo->symlink = 0; ++#endif ++ + return PK_COOL; + + } /* end function process_cdir_file_hdr() */ diff --git a/meta/recipes-extended/unzip/unzip_6.0.bb b/meta/recipes-extended/unzip/unzip_6.0.bb index 105d048f55b..f47f03665a8 100644 --- a/meta/recipes-extended/unzip/unzip_6.0.bb +++ b/meta/recipes-extended/unzip/unzip_6.0.bb @@ -19,6 +19,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/ file://fix-security-format.patch \ file://18-cve-2014-9913-unzip-buffer-overflow.patch \ file://19-cve-2016-9844-zipinfo-buffer-overflow.patch \ + file://fix-symlink.patch \ " UPSTREAM_VERSION_UNKNOWN = "1"