Encode the FILENAME argument of 'file-locked-p'
* src/filelock.c (Ffile_locked_p): Encode the file name, before passing it to system APIs. (Bug#35171)
This commit is contained in:
parent
7dc0a06959
commit
91018cec01
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue