Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: ff9a58e42995692b5d0cf9bb165ace4f1a2a2b731bf69dcbb8a7658ca61d65fd
Ticket: b9725d990bad71033ec286dc01ac0d110c505fc3
::zipfile::mkzip::walk fails with directory names preceded with '-'
User & Date: hromojaro 2019-03-08 20:03:55
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    zip::walk fails with sub-directories which names start with '-', due to missing '--' in glob expressions.<p>
    
    Can be reproduced like this: 
    <pre>
    $ mkdir -- -1
    $ ls
    -1/
    $ tclsh
    % package require Tcl 8.6
    8.6.7
    % package require zipfile::mkzip
    1.2
    % ::zipfile::mkzip::mkzip my.zip -directory .
    bad option "-1/*": must be -directory, -join, -nocomplain, -path, -tails, -types, or --
    </pre>
    
    Please consider applying the attached patch with a fix.<p>
    
    Regards,<br/>
    Héctor Romojaro
    
  5. foundin changed to: "1.19"
  6. is_private changed to: "0"
  7. login: "hromojaro"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "7037081d48397e409dbdf3f634c65c1c892e898b"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "hromojaro"
  14. subsystem changed to: "zip"
  15. title changed to:
    zip::walk fails with directory names preceded with '-'
    
  16. type changed to: "Patch"