summaryrefslogtreecommitdiff
path: root/archive.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-05-23 21:39:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-05-23 21:39:55 (GMT)
commit6cd690616029029aa8c70bbb3e5d63e6676e1824 (patch)
treedeefebc13638646938039bd7feb0ca8645f9406e /archive.c
parent1b8138fb0880e399dcb6fcc6b6d4081c1a1db40e (diff)
parent6a616619679d78e116f775a37094c15e1f824775 (diff)
downloadgit-6cd690616029029aa8c70bbb3e5d63e6676e1824.zip
git-6cd690616029029aa8c70bbb3e5d63e6676e1824.tar.gz
git-6cd690616029029aa8c70bbb3e5d63e6676e1824.tar.bz2
Merge branch 'jc/archive-add-file-normalize-mode'
"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). * jc/archive-add-file-normalize-mode: archive: do not let on-disk mode leak to zip archives
Diffstat (limited to 'archive.c')
-rw-r--r--archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive.c b/archive.c
index 654ea2a..e2121eb 100644
--- a/archive.c
+++ b/archive.c
@@ -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;