Skip to content
Tcl Source Code Artifact [4f2dd9a4ef]
Login

Artifact [4f2dd9a4ef]

Artifact 4f2dd9a4ef04eced061cc2555561958b05d2e79357251236455fdecd99c0e53b:

Ticket change [4f2dd9a4ef] - New ticket [aaa84fbbc59fc039|aaa84fbbc5] <i>zipfs info on mountpoint of executable returns zero offset in field 4</i>. by juliannoble2 on 2024-10-14 15:46:42.
D 2024-10-14T15:46:42.221
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment Documentation\sfor\stcl9\szipfs\sinfo\ssays:\r\n\r\nAs\sa\sspecial\scase,\squerying\sthe\smount\spoint\sgives\sthe\sstart\sof\sthe\szip\sdata\sas\sthe\soffset\sin\s(4),\swhich\scan\sbe\sused\sto\struncate\sthe\szip\sinformation\sfrom\san\sexecutable.\r\n\r\nTested\son\ssome\sof\smy\sown\swindows\sbuilds\sand\salso\son\ssome\sbeta\stcl9s\sfrom\smagicsplat.\r\n\r\n\s\szipfsinfo\s//zipfs:/app\r\n\s\stclsh90.exe\s0\s0\s0\r\n\r\nConfirmed\swith\sSchelte\sin\schat.\r\n\r\nSorry\sto\sharp\son\sabout\soffsets\s-\sbut\sI\sthink\sit's\simportant.\sIf\syou\smount\sa\szip\sthat\shas\sa\stcl\sscript\sprefix\s-\sit\sshows\szero\sfor\sfield\s4\sif\sthe\soffsets\sare\srelative\sto\sthe\sfile\s(which\sis\swhat\szipfs\smkimg\sseems\sto\shave\schanged\sto\sdo\sin\s2021)\r\nIf\syou\sjust\screate\sa\szip\swhich\sis\scatted\s(ie\sno\soffset\sadjustments\stherefore\soffsets\sare\srelative\sto\sthe\sarchive)\s-\syou\swill\sget\sthe\soffset\sinfo\sin\sfield\s4\sto\said\sin\sdetermining\swhere\sthe\sexe/zip\ssplit\soccurs.\r\n\r\nI\sbelieve\sthis\sis\sa\srather\sdifficult\sproblem\sto\sdetermine\sthe\ssplit\sif\syou\suse\sfile\sbased\soffsets\s-\sas\syou\sprobably\shave\sto\sscan\sfor\spk\\3\\4\s(local\sfile\sheader)\sentries\s-\swhich\scould\sconceivably\sget\sfalse\spositives\sfrom\sin\sthe\sexe/script\sdata.\r\nAlso\s-\sthere\scan\slegitimately\sbe\sfile\sentries\swhich\saren't\spointed\sto\sby\sthe\sCDR\s\sso\syou\scan't\sjust\senumerate\sall\sfiles\sand\slook\sfor\sthe\slowest\soffset\s-\sthough\sat\sleast\sit\scan\sget\syou\sin\sthe\sballpark\r\n\r\nIf\sit\swas\skept\sas\ssimple\sunadjusted\soffsets\s-\sit's\sjust\sa\smatter\sof\sdoing\sa\ssimple\scalculation\s-\swhich\stclZipfs.c\salready\sdoes.\s\r\n\r\nTrying\snot\sto\sadd\stoo\smuch\snoise\saround\sthis\s-\sbut\sthe\scalculation\sof\sthe\soffset\sas\szero\sas\sreturned\sby\s'zipfs\sinfo'\smight\sexplain\swhy\sin\sticket\shttps://core.tcl-lang.org/tcl/tktview/fc65ff1b663fd16e7582\r\n..\sthe\sexe\swas\smissing\sfrom\szipfs\smkimg\soutput.\r\nIt's\spossibly\san\sinteraction\swith\susing\s'zip\s-A'\sto\schange\soffsets\sto\sfile\sbased.\r\nIt's\smy\sguess\sthat\sthe\sfix\sin\sthat\sticket\sto\suse\sfile-based\soffsets\sbroke\szipfs\sinfo\s-\sand\sleaves\sus\swith\sthe\sharder\sproblem\sof\sscanning\spossibly\slarge\sexes\sand\szips\sfor\sthe\ssplit.
J is_private 0
J login juliannoble2
J priority 5\sMedium
J private_contact 957fdfcd8744611e3fe1f4896c7538b1d9bf47b2
J resolution None
J severity Severe
J status Open
J submitter juliannoble2
J subsystem -\sNew\sBuiltin\sCommands
J title zipfs\sinfo\son\smountpoint\sof\sexecutable\sreturns\szero\soffset\sin\sfield\s4
J type Bug
K aaa84fbbc59fc039788c080a8cd32d2f73316db9
U juliannoble2
Z 1fed8dd27c307052fc991cc3ec269f66