Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9f43159a5ace143db207d90572703904472007b3f06baa155528b14d00db1094
Ticket: 46456586896ffab0bc037b3ea5c6dca2c4514bfb
Opening a zipfs mounted file in mode r+ truncates file
User & Date: apnadkarni on 2023-09-23 05:52:40
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    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
    ```
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Opening a zipfs mounted file in more r+ truncates file
    
  16. type changed to: "Bug"