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
5796b690c5Merge [60e4fd72fa71d32a]: Fix [4645658689]: zipfs file truncation with open r+. check-in2024-08-22 13:49:1560e4fd72faMerge 8.7 - Bug [4645658689] - zipfs file truncation with open r+ check-in2023-09-23 13:41:046137ca45c5Bug [4645658689] - zipfs file truncation with open r+ check-in2023-09-23 13:36:10
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.