emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 91018ce: Encode the FILENAME argument of 'file-lock


From: Eli Zaretskii
Subject: [Emacs-diffs] master 91018ce: Encode the FILENAME argument of 'file-locked-p'
Date: Sat, 6 Apr 2019 10:55:13 -0400 (EDT)

branch: master
commit 91018cec0157f649a0b4b5db7399e683e7089093
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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)
---
 src/filelock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/filelock.c b/src/filelock.c
index 5cec199..baf87b7 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.  */)
   USE_SAFE_ALLOCA;
 
   filename = Fexpand_file_name (filename, Qnil);
+  filename = ENCODE_FILE (filename);
 
   MAKE_LOCK_NAME (lfname, filename);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]