Submitted By: Oliver Brakmann <obrakmann at gmx.net>
Date: 2006-02-26
Initial Package Version: Unzip 5.52
Upstream Status: Unknown
Origin: Ubuntu patch to unzip <http://archive.ubuntu.com/ubuntu/pool/main/u/unzip/unzip_5.52-3ubuntu2.2.diff.gz>
Description: Fixes CVE-2005-2475 and CVE-2005-4667
old
|
new
|
|
1042 | 1042 | ush z_uidgid[2]; |
1043 | 1043 | int have_uidgid_flg; |
1044 | 1044 | |
| 1045 | /*--------------------------------------------------------------------------- |
| 1046 | Change the file permissions from default ones to those stored in the |
| 1047 | zipfile. |
| 1048 | ---------------------------------------------------------------------------*/ |
| 1049 | |
| 1050 | #ifndef NO_CHMOD |
| 1051 | if (fchmod(fileno(G.outfile), 0xffff & G.pInfo->file_attr)) |
| 1052 | perror("chmod (file attributes) error"); |
| 1053 | #endif |
| 1054 | |
1045 | 1055 | fclose(G.outfile); |
1046 | 1056 | |
1047 | 1057 | /*--------------------------------------------------------------------------- |
… |
… |
|
1151 | 1161 | #endif /* ?AOS_VS */ |
1152 | 1162 | } |
1153 | 1163 | |
1154 | | /*--------------------------------------------------------------------------- |
1155 | | Change the file permissions from default ones to those stored in the |
1156 | | zipfile. |
1157 | | ---------------------------------------------------------------------------*/ |
1158 | | |
1159 | | #ifndef NO_CHMOD |
1160 | | if (chmod(G.filename, filtattr(__G__ G.pInfo->file_attr))) |
1161 | | perror("chmod (file attributes) error"); |
1162 | | #endif |
1163 | | |
1164 | 1164 | } /* end function close_outfile() */ |
1165 | 1165 | |
1166 | 1166 | #endif /* !MTS */ |