projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc0a06
)
Encode the FILENAME argument of 'file-locked-p'
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 6 Apr 2019 14:53:30 +0000
(17:53 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 6 Apr 2019 14:53:30 +0000
(17:53 +0300)
* src/filelock.c (Ffile_locked_p): Encode the file name,
before passing it to system APIs. (Bug#35171)
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index 5cec1996201ef01b955a492a6e3a652f831e2d4b..baf87b7f635481f506b81235f055b1a00eb9b407 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-822,6
+822,7
@@
t if it is locked by you, else a string saying which user has locked it. */)
USE_SAFE_ALLOCA;
filename = Fexpand_file_name (filename, Qnil);
+ filename = ENCODE_FILE (filename);
MAKE_LOCK_NAME (lfname, filename);