Tcl Source Code

View Ticket
Login
Ticket UUID: c3364db38ad751a0dac710b1d34ca8fc6fb1849b
Title: Broken handling of full paths in mounted zip archives
Type: Bug Created on: 2023-10-12 15:29:18
Submitter: apnadkarni Assigned to: nobody
Subsystem: - New Builtin Commands Severity: Important
Priority: 5 Medium Last modified: 2023-10-15 11:13:59
Status: Closed Closed by: apnadkarni
Resolution: Fixed Closed on: 2023-10-15 11:13:59
Version:
Description:

If a Zip file contains files with absolute or full paths, they show up as "hidden" paths. Best illustrated with an example. Note the inconsistency - //zipfs:/src and its descendants are not listed by zipfs find though later commands show they exist. Moreover the files are not under mount point //zipfs:/mt.

% zipfs mount ../tests/zipfiles/test-paths.zip //zipfs:/mt
% zipfs find //zipfs:/
//zipfs:/mt //zipfs:/mt/filename.txt //zipfs:/mt/src //zipfs:/mt/src/tcltk //zipfs:/mt/src/tcltk/wip //zipfs:/mt/src/tcltk/wip/tcl //zipfs:/mt/src/tcltk/wip/tcl/tests //zipfs:/mt/src/tcltk/wip/tcl/tests/zipfiles //zipfs:/mt/src/tcltk/wip/tcl/tests/zipfiles/fullpath.txt
% file exists //zipfs:/src
1
% zipfs find //zipfs:/src
//zipfs:/src/tcltk //zipfs:/src/tcltk/wip //zipfs:/src/tcltk/wip/tcl //zipfs:/src/tcltk/wip/tcl/tests //zipfs:/src/tcltk/wip/tcl/tests/zipfiles //zipfs:/src/tcltk/wip/tcl/tests/zipfiles/abspath.txt
User Comments:
apnadkarni added on 2023-10-15 11:13:59:
Fixed in [492fb812e9].