mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
win: tempname(): Use $TMPDIR if defined.
This commit is contained in:
@@ -601,8 +601,8 @@ all files in it are deleted. When Vim has the setuid bit set this may cause
|
|||||||
problems, the temp file is owned by the setuid user but the filter command
|
problems, the temp file is owned by the setuid user but the filter command
|
||||||
probably runs as the original user.
|
probably runs as the original user.
|
||||||
Directory for temporary files is created in the first suitable directory of:
|
Directory for temporary files is created in the first suitable directory of:
|
||||||
For Unix: $TMPDIR, /tmp, current-dir, $HOME.
|
Unix: $TMPDIR, /tmp, current-dir, $HOME.
|
||||||
For MS-Windows: $TMP, $TEMP, $USERPROFILE, current-dir.
|
Windows: $TMPDIR, $TMP, $TEMP, $USERPROFILE, current-dir.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#define NAME_MAX _MAX_PATH
|
#define NAME_MAX _MAX_PATH
|
||||||
|
|
||||||
#define TEMP_DIR_NAMES { "$TMP", "$TEMP", "$USERPROFILE", "" }
|
#define TEMP_DIR_NAMES { "$TMPDIR", "$TMP", "$TEMP", "$USERPROFILE", "" }
|
||||||
#define TEMP_FILE_PATH_MAXLEN _MAX_PATH
|
#define TEMP_FILE_PATH_MAXLEN _MAX_PATH
|
||||||
|
|
||||||
#define FNAME_ILLEGAL "\"*?><|"
|
#define FNAME_ILLEGAL "\"*?><|"
|
||||||
|
|||||||
Reference in New Issue
Block a user