diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-06-08 21:27:51 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-06-08 21:27:51 (GMT) |
commit | 9d1304155be0e79b77e1f68bdd4c9a7ac442f0e8 (patch) | |
tree | b4b66b592efcf1da22ab9b558b939a74c7418d05 | |
parent | c47b89cde6e81e03a642186df90ff8b372a5bcdd (diff) | |
parent | 6a616619679d78e116f775a37094c15e1f824775 (diff) | |
download | git-9d1304155be0e79b77e1f68bdd4c9a7ac442f0e8.zip git-9d1304155be0e79b77e1f68bdd4c9a7ac442f0e8.tar.gz git-9d1304155be0e79b77e1f68bdd4c9a7ac442f0e8.tar.bz2 |
Merge branch 'jc/archive-add-file-normalize-mode' into maint
"git archive --add-file=<path>" picked up the raw permission bits
from the path and propagated to zip output in some cases, without
normalization, which has been corrected (tar output did not have
this issue).
source: <xmqqmtfme8v6.fsf@gitster.g>
* jc/archive-add-file-normalize-mode:
archive: do not let on-disk mode leak to zip archives
-rw-r--r-- | archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -342,7 +342,7 @@ int write_archive_entries(struct archiver_args *args, else err = write_entry(args, &fake_oid, path_in_archive.buf, path_in_archive.len, - info->stat.st_mode, + canon_mode(info->stat.st_mode), content.buf, content.len); if (err) break; |