Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 68a5ce4b180b250e79b67b0bdea5ecdef497fb0ee0dd21a52b9bef7006ca8f7a
Ticket: f91ee30d335fcae5ad075155d2bf63423fb8b0ad
Opening a zipfs file in mode r+ truncates at position of last write
User & Date: apnadkarni on 2023-09-26 09:11:51
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    In the sample below, the read at the end should be same as the first except for replacing the first `t` with an `X`. Instead the file is truncated at the trailing end of the last write.
    
    ```
    % zipfs mount ../tests/zipfiles/test.zip /mt
    % set fd [open //zipfs:/mt/test r]
    zipfs_37_1
    % read $fd
    test
    
    % close $fd
    % set fd [open //zipfs:/mt/test r+]
    zipfs_37_2
    % puts -nonewline $fd X
    % close $fd
    % set fd [open //zipfs:/mt/test r]
    zipfs_0_3
    % read $fd
    X
    % 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: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Opening a zipfs file in mode r+ truncates at position of last write
    
  16. type changed to: "Bug"