<i>delete and copy fail in linux when path contains ".."</i> status still Open with 4 other changes
by
.
D 2026-10-17T09:08:45.870
J foundin 8.6.18,\s9.0.5,\s9.1.0
J icomment Still\sthere,\sand\ssince\s8.5\sthe\sfailure\sis\ssilent:\s<nowiki>[file\sdelete\s-force\sd1/d2/d3/..]</nowiki>\sdeletes\sthe\scontents\sof\sd2\sbut\snot\sd2\sitself,\sand\sreturns\ssuccess\s(the\sfinal\srmdir()\sfails\swith\sENOENT,\swhich\sis\signored).\nProposed\sfix\sin\sbranch\s[/timeline?r=delete-refuse-dot-dot|delete-refuse-dot-dot]:\son\sUnix,\srefuse\sto\sremove\sa\spath\sending\sin\s"."\sor\s"..",\sas\srm(1)\sdoes.\sNormalizing\sthe\spath,\sas\son\sWindows,\swould\sbe\swrong\son\sPOSIX:\s".."\sis\sresolved\sphysically\sthere,\sso\sif\sd3\sis\sa\ssymbolic\slink,\s"d1/d2/d3/.."\sis\sthe\sparent\sof\sits\starget,\snot\s"d1/d2".\sTest\sfCmd-5.14.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 1827008fffffffffffffffffffffffffffffffff
U serhiy.storchaka
Z ff734e93e74d4440e4ff0045d4f10874