diff options
| author | tao <2471314@gmail.com> | 2026-06-12 23:03:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-12 11:03:23 -0400 |
| commit | f81da18c3ab4d974fd1e5f6d582e742438995076 (patch) | |
| tree | 85b34b0142fe8d59490b17b726d7740d62634d9e /test/functional/vimscript/executable_spec.lua | |
| parent | baabb7ab6fe9808e12d24d50bfadf81e40a906e3 (diff) | |
| download | rneovim-f81da18c3ab4d974fd1e5f6d582e742438995076.tar.gz rneovim-f81da18c3ab4d974fd1e5f6d582e742438995076.tar.bz2 rneovim-f81da18c3ab4d974fd1e5f6d582e742438995076.zip | |
fix(stdpath): avoid DOS 8.3 filenames for "cache", "run" #40201
Problem:
stdpath() may return a DOS 8.3 "shortened" filename, because Windows
truncates long usernames into `6ch~N` names in `TEMP/TMP` env vars.
We don't want to "leak" them into Nvim.
Solution:
For "run", pass `true` to `vim_FullName` to expand 8.3 filenames.
For "cache", call `os_realpath` to expand 8.3 filenames.
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions