Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 05c29ffd8f624fe3e7077f0bef154dc226b74b8038c6e166ca4d53c4b90dbbdb
Ticket: 4af110a6a12a0c177fb245a7c21be584103b7cff
file attrs fails on zipfs path directories
User & Date: apnadkarni on 2023-09-25 14:45:39
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    Example:
    
    ```
    % zipfs mount ../tests/zipfiles/test.zip /a/b/c
    % file attributes //zipfs:/
    -longname //zipfs:/ -shortname //zipfs:/
    % file attributes //zipfs:/a
    could not read "//zipfs:/a": no such file or directory
    % file attributes //zipfs:/a/b/c
    -uncompsize 0 -compsize 0 -offset 0 -mount //zipfs:/a/b/c -archive /mnt/d/src/tcltk/wip/tcl/tests/zipfiles/test.zip -permissions 0o555 -crc 0
    ```
    
    The first two above seem wrong.
    
    In the first case, the -longname and -shortname should apply to native files only. They make no sense for the zipfs mount. On Unix, the command raises an error which does not make sense for an existing directory.
    
    Likewise, the second command should not raise an error for an existing directory.
    
    Seems to be the correct behaviour should be to return an empty attribute dictionary. The zipfs-specific attributes as in the last command do not apply since there is no single archive associated with //zipfs:/ or //zipfs:/a. They are part of the mount path, not the archive and there can be more than one archive mounted below.
    
  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: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "file attrs fails on zipfs path directories"
  16. type changed to: "Bug"