summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko2009-02-26 11:57:01 +0000
committerDenis Vlasenko2009-02-26 11:57:01 +0000
commita76f10b544b4ffe4b0aaf41eede1aeb9b13a95e8 (patch)
treea41295eaee4b3f28a6e20df4e592ffacc42ac4ab /archival
parent15c0b725849875c718b168a26e13872e163cde4c (diff)
downloadbusybox-a76f10b544b4ffe4b0aaf41eede1aeb9b13a95e8.zip
busybox-a76f10b544b4ffe4b0aaf41eede1aeb9b13a95e8.tar.gz
Apply post-1.13.2 fixes, bump version to 1.13.3
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c2
-rw-r--r--archival/unzip.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/archival/tar.c b/archival/tar.c
index deb5c89..47cc39c 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -591,8 +591,6 @@ static NOINLINE int writeTarFile(int tar_fd, int verboseFlag,
struct TarBallInfo tbInfo;
tbInfo.hlInfoHead = NULL;
-
- fchmod(tar_fd, 0644);
tbInfo.tarFd = tar_fd;
tbInfo.verboseFlag = verboseFlag;
diff --git a/archival/unzip.c b/archival/unzip.c
index e468ff4..7b47a8a 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -140,7 +140,7 @@ struct BUG_cde_header_must_be_16_bytes {
};
#define FIX_ENDIANNESS_CDE(cde_header) do { \
- (cde_header).formatted.cds_offset = SWAP_LE16((cde_header).formatted.cds_offset); \
+ (cde_header).formatted.cds_offset = SWAP_LE32((cde_header).formatted.cds_offset); \
} while (0)
enum { zip_fd = 3 };