Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ac7569766edaf80a9ceed7a5cd387d9e35ac894b697f6f6eb442f1825ceadd27
Ticket: aaa84fbbc59fc039788c080a8cd32d2f73316db9
zipfs info on mountpoint of executable returns zero offset in field 4
User & Date: juliannoble2 on 2024-12-01 20:32:40
Changes

  1. icomment:
    open source tools zip, 7zip, nanazip and peazip can view/list and unzip a catted file directly. (7zip and nanazip are cross platform and can directly edit/delete contents too)
    7z when listing just puts an extra line in the header: "offset = nnn..." rather than a warning.
    
    Yes, there is a tradeoff in that not all tools can deal with a combined file in catted format. (most can read/extract - fewer can edit directly) 
    The tradeoff goes in the reverse direction too sometimes, in that for example 7zip,nanazip can't directly edit when in the current adjusted format but can when unadjusted.
    
    It makes sense that the motivation for the adjusted 'zip -A' format may have been so that (most) zip tools could work directly with a zipfs extended executable or lib - though I don't see it mentioned as a goal in tip 430.
    
    I don't think that attempting to make the combined file work seamlessly with any and every zip tool (not fully attainable in either format) should take precedence over the fix - but I understand the attraction of supporting a wider set. 
    
    This fix makes working with the combined files a bit more like working with other vfs attachment systems such as kit or cookfs; or alternatively the convenience of direct editing would require specific tools such as 7z or nanazip.
    
    All I can say is that in my opinion working with tcl tools and being able to split the zip via the offset, or copying out to folder,
    or working with any zip tool on just the zip part, then re-catting or rerunning zipfs mkimg ; should be enough - and is better for zipkit builders/programmers.
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"