Repository navigation
Commit bc16b94
committed
ext/zip: use
The code paths that call `zip_open()` are used for stats and reading, not
writing. Previously `ZIP_CREATE` would create an in-memory zip archive, and if
it were written to, would persist it to disk when closed, but since the archive
was never written to, this functionality was unneeded. Use the `ZIP_RDONLY`
flag to make it clearer that the zip archive is not being written to.ZIP_RDONLY when calling zip_open() in zip_stream.c1 parent 9a7ec37 commit bc16b94
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
0 commit comments