Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Opening a zipfs mounted file in mode r+ truncates file

Closed / Fixed46456586896ffab0bc037b3ea5c6dca2c4514bfbCreated 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-09-23 05:52:40

Opening a file in a mounted zip archive in mode r+ truncates the file.

Opening with r

% zipfs mount ../tests/zipfiles/test.zip [zipfs root]
% set fd [open [file join [zipfs root] test] r]
zipfs_37_1
% gets $fd
test
% close $fd
% zipfs unmount [zipfs root]

Versus opening with r+ :

% zipfs mount ../tests/zipfiles/test.zip [zipfs root]
% set fd [open [file join [zipfs root] test] r+]
zipfs_37_2
% gets $fd
% close $fd
Referenced by3
apnadkarni Ticket [4645658689]: 3 changes [History diff]2023-09-23 05:53:00
apnadkarniplain2023-09-23 13:53:10
Fixed in [6137ca45c5]
Log in (anonymous is fine) to add a comment.