node/deps/v8/third_party/jinja2/patches/0001-canonicalize-zipinfo-create-system
Michaël Zasso 9d7cd9b864
deps: update V8 to 12.8.374.13
PR-URL: https://github.com/nodejs/node/pull/54077
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
2024-08-16 16:03:01 +02:00

18 lines
855 B
Plaintext

diff --git a/third_party/jinja2/environment.py b/third_party/jinja2/environment.py
index ea04e8b44330f..8995ac2633797 100644
--- a/third_party/jinja2/environment.py
+++ b/third_party/jinja2/environment.py
@@ -852,6 +852,12 @@ class Environment:
if zip:
info = ZipInfo(filename)
info.external_attr = 0o755 << 16
+ # Set create_system=3 (Unix). Otherwise, the generated
+ # zipfiles on Windows aren't identical to the ones on
+ # Linux and Mac.
+ # This is problematic for local/remote deterministic checks.
+ # See also http://crbug.com/341239674#comment14
+ info.create_system = 3
zip_file.writestr(info, data)
else:
with open(os.path.join(target, filename), "wb") as f: