Overview
| Artifact ID: | 1b6add3f04e8b8300148cf37aaddd993668a2a43b2037524046ad192b95a48b6 |
|---|---|
| Ticket: | 4d3f2130292dbfe33977659c2afe98c7bb86b668
VFS support causes infinite recursion during 'file exists' if working directory has been removed |
| User & Date: | serhiy.storchaka on 2026-11-23 13:32:24 |
Changes
- icomment:
The missing fix is [82a62c58b9] for [e2698b94b1] (Tcl_FSChdir crashes after seteuid), which is only in 9.0 and main. In 8.6, when getcwd() fails, Tcl_FSGetCwd() sets the error message but continues, and turns the NULL into an empty path, so <code>pwd</code> returns "" and <code>file exists .</code> returns 1. Backport in branch [/timeline?r=getcwd-failure-8-6|getcwd-failure-8-6] (by hand, the comments differ), with the knownBug marks removed: source-9.1 and 9.2 pass, and so does the whole test suite.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"