Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8bfd5e5464e5ab39bebf197f48bef1e2fc597206ca05bed83b345c7f2bf3f1e3
Ticket: ad7bafd5e11cfa09e9ed91ae4acff706438705e1
auto_path/tcl_library consistency for zipfs filesystem
User & Date: juliannoble2 on 2024-10-09 09:11:54
Changes

  1. icomment:
    >There was already a ticket on this problem: [fc65ff1b663fd16e7582], which is closed as "fixed". 
    
    Yeah, I didn't understand how that patch could work without the dataStartOffset being subtracted:
    e.g in SerializeCentralDirectorySuffix
    
      ZipWriteInt(start, end, buf + ZIP_CENTRAL_DIRSTART_OFFS,
    	    directoryStartOffset - dataStartOffset); 
    
    The central directory offset has to be relative to the start of the zip.
    
    So I edited the latest tclZipfs.c to put it back in for SerializeLocalEntryHeader and SerializeCentralDirectoryEntry - and tried it out.
    I can now create a kit with zipfs mkimg that is easily editable using standard zip tools.
    
    Also - previously if I did: 
      zipfs mount tclshwithzipfs.exe tclshwithzipfs.exe 
    
    I couldn't write to it. After the dataStartOffset being added back in I can.
    
    I still need to understand the bug that 2021 commit was supposed to fix though.
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"