Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Broken handling of full paths in mounted zip archives

Closed / Fixedc3364db38ad751a0dac710b1d34ca8fc6fb1849bCreated 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-10-12 15:29:18

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
Referenced by1
apnadkarniplain2023-10-15 11:13:59
Fixed in [492fb812e9].
Log in (anonymous is fine) to add a comment.