Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-22
13:49
Merge [60e4fd72fa71d32a]: Fix [4645658689]: zipfs file truncation with open r+. check-in: 5796b690c5 user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
2023-09-23
13:53 • Closed ticket [4645658689]: Opening a zipfs mounted file in mode r+ truncates fi... artifact: 519eeeda55 user: apnadkarni
13:41
Merge 8.7 - Bug [4645658689] - zipfs file truncation with open r+ check-in: 60e4fd72fa user: apnadkarni tags: trunk, main
13:36
Bug [4645658689] - zipfs file truncation with open r+ check-in: 6137ca45c5 user: apnadkarni tags: core-8-branch
05:53 • Ticket [4645658689] Opening a zipfs mounted file in mode r+ truncates file s... artifact: 4a2b6e1bda user: apnadkarni
05:52 • New ticket [4645658689]. artifact: 9f43159a5a user: apnadkarni

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.