Files
cindy/packages/file-browser-core
Zhao Dengfeng 036410ef63 fix(file-browser): stop atomic save from following a planted temp symlink
writeFile always staged content at the fixed path <target>.xdt-tmp and opened it with 'w'. A symlink planted at that path inside the workdir made the save write outside the workdir, and the final rename moved the symlink itself into the target's place. Stage at a random <target>.<hex>.xdt-tmp created exclusively with 'wx', and remove it if the write or rename fails. The name still ends in .xdt-tmp, so list and watcher filtering are unchanged.

Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-10-27 18:41:48 +08:00
..