diff options
| author | Eli Zaretskii | 2019-04-06 17:53:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-04-06 17:53:30 +0300 |
| commit | 91018cec0157f649a0b4b5db7399e683e7089093 (patch) | |
| tree | fdff9108ab0d18802bdbf592f03b3bb5ffad5c57 /src/filelock.c | |
| parent | 7dc0a06959ab5ebda2f2cc4ed31a1b66395e2cf9 (diff) | |
| download | emacs-91018cec0157f649a0b4b5db7399e683e7089093.tar.gz emacs-91018cec0157f649a0b4b5db7399e683e7089093.zip | |
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)
Diffstat (limited to 'src/filelock.c')
| -rw-r--r-- | src/filelock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filelock.c b/src/filelock.c index 5cec1996201..baf87b7f635 100644 --- 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. */) | |||
| 822 | USE_SAFE_ALLOCA; | 822 | USE_SAFE_ALLOCA; |
| 823 | 823 | ||
| 824 | filename = Fexpand_file_name (filename, Qnil); | 824 | filename = Fexpand_file_name (filename, Qnil); |
| 825 | filename = ENCODE_FILE (filename); | ||
| 825 | 826 | ||
| 826 | MAKE_LOCK_NAME (lfname, filename); | 827 | MAKE_LOCK_NAME (lfname, filename); |
| 827 | 828 | ||