diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-08 09:49:40 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-08 09:50:15 -0700 |
commit | 7d1115e0c792f79c9eb728bf9027053a5868ff23 (patch) | |
tree | 6cff4fdfa736e631afeb63dc9cef8793f24566f3 /src/fileio.c | |
parent | 846870e508021ee8d1099280b3f40fe108a34bf0 (diff) | |
download | emacs-7d1115e0c792f79c9eb728bf9027053a5868ff23.tar.gz |
Document make-temp-name magic limitations
* doc/lispref/files.texi (Unique File Names):
* src/fileio.c (Fmake_temp_name): Document that make-temp-name
does not guarantee uniqueness on magic file names.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index db760d9b22d..15845e39144 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -757,7 +757,8 @@ danger of generating a name being used by another Emacs process \(so long as only a single host can access the containing directory...). This function tries to choose a name that has no existing file. -For this to work, PREFIX should be an absolute file name. +For this to work, PREFIX should be an absolute file name, and PREFIX +and the returned string should both be non-magic. There is a race condition between calling `make-temp-name' and creating the file, which opens all kinds of security holes. For that reason, you should |