.
D 2023-09-09T17:44:12.191
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment Easiest\sdescribed\swith\san\sexample.\s`test.zip`\scontains\sthe\sdirectory\s`testdir`\swith\sthe\sfile\s`test2`.\s`teststored.zip`\scontains\sa\sfile\s`abac-repeat.txt`.\r\n\r\n```\r\n%\szipfs\smount\s//zipfs:/test\s../tests/zipfiles/test.zip\r\n%\sglob\s-tails\s-dir\s//zipfs:/test/testdir\s*\r\ntest2\r\n\r\n%\szipfs\smount\s//zipfs:/temp\s../tests/zipfiles/teststored.zip\r\n%\sglob\s-tails\s-dir\s//zipfs:/temp\s*\r\nabac-repeat.txt\r\n```\r\n\r\nNow\sinstead\sif\swe\smount\s`teststored.zip`\son\sa\spath\s**inside**\sthe\s`test.zip`\sarchive,\swe\sget\r\n\r\n```\r\n%\szipfs\smount\s//zipfs:/test/testdir\s../tests/zipfiles/teststored.zip\r\n%\sglob\s-tails\s-dir\s//zipfs:/test/testdir\s*\r\ntest2\sabac-repeat.txt\r\n```\r\n\r\nAs\sseen\sabove,\s//zipfs:/test/testdir\snow\sshows\sfiles\sfrom\s**both**\sarchives.\sWhile\sone\smight\sbe\stempted\sto\scall\sthis\sa\s"feature",\sI\sbelieve\sit\sis\spurely\saccidental.\sFor\sone,\safaik\sthis\sis\snot\show\smost\soperating\ssystem\smounts\sbehave.\sSecond,\swhen\sduplicate\snames\sare\spresent,\sone\sof\sthe\stwo\sare\shidden\sdepending\son\sorder\sof\smounting\sand\s**are\snot\srecovered**\swhen\sthe\soverlaid\sarchive\sis\sunmounted,\swhich\sis\sconfusing.\r\n\r\nIn\smy\smind,\sthe\scode\sshould\sbe\schanged\sto\seither\r\n\r\n1.\sDisallow\smount\spoints\swithin\smounted\sarchives,\sor\r\n\r\n2.\sDisallow\smount\spoints\sif\sthe\smount\spoint\sis\san\sexisting\sdirectory\s(may\sbe\sempty\sdirectories\scould\sbe\sallowed)
J foundin 8.7
J is_private 0
J login apnadkarni
J priority 5\sMedium
J private_contact 9546e9877f1a8899e25a89082561ee694e7fb402
J resolution None
J severity Minor
J status Open
J submitter apnadkarni
J subsystem -\sNew\sBuiltin\sCommands
J title overlaid\szipfs\smounts\sco-mingle\sdirectory\scontents
J type Bug
K 4ae42446ab6ae605bbe5aaf5cb5905b499ce9794
U apnadkarni
Z 7237367f85c419ad43b2361d68690918