+2009-01-22 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * library/zipvfs.tcl: Applied patch from [Bug 1011492] to ensure
+ we handle zipfiles with a prefix block robustly.
+
2009-01-21 Andreas Kupries <andreask@activestate.com>
* pkgIndex.tcl.in: Incremented version of vfs::zip
return -code error "bad central header: $x"
}
+ upvar #0 zip::$fd cb
+ incr sb(ino) $cb(base) ;# adjust ino for start of archive offset
+
foreach v {vem ver flags method disk attr} {
set sb($v) [expr {$sb($v) & 0xffff}]
}
zip::EndOfArchive $fd cb
- seek $fd $cb(coff) start
+ seek $fd [expr {$cb(coff) + $cb(base)}] start
set toc(_) 0; unset toc(_); #MakeArray