diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-03-24 21:49:14 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-03-24 21:49:14 +0900 |
commit | f079aadc03aae8647db50536ca43e1ca75fc4775 (patch) | |
tree | eeeaca5ef4764003ab87571130583a24e3587f4f /libarchive/archive_read_support_format_cab.c | |
parent | 2fe539852de362427d1c2d4c6fa97f5ebf6c9d35 (diff) | |
download | libarchive-f079aadc03aae8647db50536ca43e1ca75fc4775.tar.gz |
Change the default permissions of the regular files in CAB and 7-Zip archives to 0666 as Zip reader.
Diffstat (limited to 'libarchive/archive_read_support_format_cab.c')
-rw-r--r-- | libarchive/archive_read_support_format_cab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_cab.c b/libarchive/archive_read_support_format_cab.c index 3f79afe1..aa0152a1 100644 --- a/libarchive/archive_read_support_format_cab.c +++ b/libarchive/archive_read_support_format_cab.c @@ -990,7 +990,7 @@ archive_read_format_cab_read_header(struct archive_read *a, if (file->attr & ATTR_RDONLY) archive_entry_set_mode(entry, AE_IFREG | 0555); else - archive_entry_set_mode(entry, AE_IFREG | 0777); + archive_entry_set_mode(entry, AE_IFREG | 0666); archive_entry_set_mtime(entry, file->mtime, 0); cab->entry_bytes_remaining = file->uncompressed_size; |