Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: 32d271c58bda2ff8d904d38e595480e9c8d63b8ec88a8cdd592bbc05d43e84c0
Ticket: b9725d990bad71033ec286dc01ac0d110c505fc3
::zipfile::mkzip::walk fails with directory names preceded with '-'
User & Date: hromojaro 2019-03-08 21:01:34
Changes

  1. assignee changed to: ""
  2. comment changed to:
    ::zipfile::mkzip::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
    
  3. login: "hromojaro"
  4. mimetype: "text/plain"
  5. title changed to:
    ::zipfile::mkzip::walk fails with directory names preceded with '-'