|
2023-10-04
| ||
| 10:08 | • Closed ticket [d22637ba8c]: zipfs allows writing to files in the mounted zipfile... artifact: 1c883442ed user: apnadkarni | |
|
2023-09-06
| ||
| 16:28 | • New ticket [d22637ba8c]. artifact: 11770489cc user: apnadkarni | |
zipfs allows writing to files in the mounted zipfile but does not save to disk
Existing files in a mounted zipfs system can be written to and correctly read back within the same process while the zip file is still mounted. However, the modified file is not actually written to disk so when the zipfs file is unmounted (or program exits) the changes are lost. Not sure if this is by design or not but it is very misleading and should be fixed.
On the other hand creation of new files is not permitted as currently implemented.
My suggestion is to make the zipfs file mounts read-only and not allow modification.
The alternative, saving the new zip content to disk is not a feasible goal for the current release, imo.
TIP 430 does not say anything on this topic of whether the file system is writable but being able to write to existing files but not new ones is neither here nor there.
Fixed manpage in [303053af53]. Alternatives will require a TIP and new implementation.