summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-29 20:38:13 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-29 20:38:13 +0800
commit4bac7d8c73440be88eaf07a6da54feb7eaaf2503 (patch)
treeab291d8cc6b99aae020d0a9f3092011a7f5a6b39 /src/filelock.c
parent04bba4a28f959cb202e7fb993b619c7358084ec3 (diff)
downloademacs-4bac7d8c73440be88eaf07a6da54feb7eaaf2503.tar.gz
Fix error after merge
* src/filelock.c (lock_file): Fix test against I_OWN_IT.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 7dfdd5ddec7..cb548ac79bd 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -682,7 +682,7 @@ lock_file (Lisp_Object fn)
if (!NILP (subject_buf)
&& NILP (Fverify_visited_file_modtime (subject_buf))
&& !NILP (Ffile_exists_p (fn))
- && !(lfname && (current_lock_owner (NULL, lfname) != I_OWN_IT)))
+ && !(lfname && (current_lock_owner (NULL, lfname) == I_OWN_IT)))
call1 (intern ("userlock--ask-user-about-supersession-threat"), fn);
/* Don't do locking if the user has opted out. */