Skip to content

Commit eb6e96f

Browse files
committed
Change InfoZIP to not auto-append .zip to pathname
1 parent 77be460 commit eb6e96f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

third_party/zip/README.cosmo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ ORIGIN
1111
LOCAL CHANGES
1212

1313
- Use Cosmopolitan's PCLMUL optimized CRC32
14+
- Don't magically append .zip extension to filename argument
1415
- Improve find_next_signature() performance using unlocked stdio

third_party/zip/zipfile.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ char *ziptyp(s)
413413
if ((t = malloc(strlen(s) + 5)) == NULL)
414414
return NULL;
415415
strcpy(t, s);
416+
417+
// [jart] don't magically append .zip extension to filename argument
418+
if (1) return t;
419+
416420
# ifdef __human68k__
417421
_toslash(t);
418422
# endif

0 commit comments

Comments
 (0)