mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Change InfoZIP to not auto-append .zip to pathname
This commit is contained in:
parent
77be460290
commit
eb6e96f036
2 changed files with 5 additions and 0 deletions
1
third_party/zip/README.cosmo
vendored
1
third_party/zip/README.cosmo
vendored
|
@ -11,4 +11,5 @@ ORIGIN
|
||||||
LOCAL CHANGES
|
LOCAL CHANGES
|
||||||
|
|
||||||
- Use Cosmopolitan's PCLMUL optimized CRC32
|
- Use Cosmopolitan's PCLMUL optimized CRC32
|
||||||
|
- Don't magically append .zip extension to filename argument
|
||||||
- Improve find_next_signature() performance using unlocked stdio
|
- Improve find_next_signature() performance using unlocked stdio
|
||||||
|
|
4
third_party/zip/zipfile.c
vendored
4
third_party/zip/zipfile.c
vendored
|
@ -413,6 +413,10 @@ char *ziptyp(s)
|
||||||
if ((t = malloc(strlen(s) + 5)) == NULL)
|
if ((t = malloc(strlen(s) + 5)) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
strcpy(t, s);
|
strcpy(t, s);
|
||||||
|
|
||||||
|
// [jart] don't magically append .zip extension to filename argument
|
||||||
|
if (1) return t;
|
||||||
|
|
||||||
# ifdef __human68k__
|
# ifdef __human68k__
|
||||||
_toslash(t);
|
_toslash(t);
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in a new issue