Skip to content
Tcl Source Code Artifact [e704995854]
Login

Artifact [e704995854]

Artifact e704995854671aca6c8277ada84e3504f4e50370f9b4e7d96c1fb5bcea7ca45e:

Ticket change [e704995854] - Ticket [e2698b94b151aecf|e2698b94b1] <i>Tcl_FSChdir crashes after seteuid</i> status still Open with 3 other changes by apnadkarni on 2026-04-16 05:47:20.
D 2026-04-16T05:47:20.443
J icomment I\scould\snot\sreproduce\sthis\son\sUbuntu\s22\sbut\sthat\scould\svery\swell\sbe\sbecause\sI'm\srunning\sunder\sWSL\sand\sbehavior\sof\sgetcwd()\setc.\son\sNTFS\scould\svery\swell\sbe\sdifferent\sas\sfar\sas\saccess\spermissions\sgo.\sIn\sfact,\sthe\stest\ssuite\salready\sdisables\schmod\srelated\stests\sfor\sWSL.\r\n\r\nLooking\sat\sthe\ssource\scode,\sit\sappears\sthe\srecursion\scase\shappens\s[here](https://core.tcl-lang.org/tcl/file?ci=b6a50a0482cf3db3&name=generic%2FtclPathObj.c&ln=1869)\swhere\sthe\spath\svalue\sis\s"".\sHow\sit\sgets\sto\sbe\sthe\sempty\sstring\sis\sa\squestion\sbut\sI\ssuspect\ssomewhere\sgetcwd\sreturns\sNULL\son\serror\sand\sthat\sgets\stranslated\sto\sthe\sempty\sstring.\sThat's\sjust\sconjecture.\r\n\r\nThe\scomment\sthere\r\n\r\n```\r\n\t\s\s\s\s\s*\sSpecial\shandling\sfor\sthe\sempty\sstring\svalue.\sThis\sone\sis\svery\r\n\t\s\s\s\s\s*\sweird\swith\s[file\snormalize\s{}]\s=>\s{}.\s(The\sreasoning\ssupporting\r\n\t\s\s\s\s\s*\sthis\sis\sunknown\sto\sDGP,\sbut\she\sfears\schanging\sit.)\sAttempt\shere\r\n\t\s\s\s\s\s*\sto\skeep\sthe\sexpectations\sof\sother\sparts\sof\sTcl_Filesystem\scode\r\n\t\s\s\s\s\s*\sabout\sstate\sof\sthe\sFsPath\sfields\ssatisfied.\r\n```\r\n\r\nis\srather\stelling\sbut\sI'm\sin\sthe\ssame\sboat\sas\sDGP\sin\sthat\sregard.\r\n\r\nIf\s@jmr\sor\ssomeone\srunning\smacos\scan\strace\sand\scheck\sif\sthe\spath\sis\sin\sfact\s""\sat\sthat\spoint,\sit\swould\shelp\strack\sthis\sdown.
J login apnadkarni
J mimetype text/x-markdown
K e2698b94b151aecf275b3dd2c5d605b89022684e
U apnadkarni
Z 7adec3bd875e1093b3f4042912ced8e1