diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-23 11:49:13 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-23 11:49:22 +0200 |
commit | d3163a3b8fa455a7a0d5b6122c0fc9f3f9a59fbd (patch) | |
tree | 3be46b7aed73d53ab5eba2d9fd5842a1a048d00a /src/filelock.c | |
parent | 662f91a795c0b5480b1733a99ef478c94d6f1426 (diff) | |
download | emacs-d3163a3b8fa455a7a0d5b6122c0fc9f3f9a59fbd.tar.gz emacs-d3163a3b8fa455a7a0d5b6122c0fc9f3f9a59fbd.tar.bz2 emacs-d3163a3b8fa455a7a0d5b6122c0fc9f3f9a59fbd.zip |
Make supersession warnings work again
* src/filelock.c (lock_file): Fix thinko in lock_file in 2ad34bcea4e
(bug#49701).
Diffstat (limited to 'src/filelock.c')
-rw-r--r-- | src/filelock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c index 106633f5846..cc185d96cdf 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -673,7 +673,7 @@ lock_file (Lisp_Object fn) Lisp_Object subject_buf = get_truename_buffer (fn); if (!NILP (subject_buf) && NILP (Fverify_visited_file_modtime (subject_buf)) - && !NILP (Ffile_exists_p (lock_filename)) + && !NILP (Ffile_exists_p (fn)) && current_lock_owner (NULL, lfname) != -2) call1 (intern ("userlock--ask-user-about-supersession-threat"), fn); |