Skip to content

Commit

Permalink
tracks: in created ZIP files set UNIX permissions to 0644
Browse files Browse the repository at this point in the history
fixes #1310
  • Loading branch information
wladich committed Mar 2, 2025
1 parent 14ab5eb commit a6f167e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/zip-writer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function writeCentralDirectoryFileHeader(stream, fileName, size, date, crc, loca
stream.writeUint16(0); // File comment length
stream.writeUint16(0); // Disk # start
stream.writeUint16(0); // Internal attr
stream.writeUint32(0); // External attr
stream.writeUint32(0x81a4_0000); // External attr = regular file, 0644
stream.writeUint32(localHeaderOffset); // External attr
stream.writeBinaryString(fileName);
}
Expand Down

0 comments on commit a6f167e

Please sign in to comment.