From e181d825fa5a837928b49ba0d37c5632967665b7 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 9 Dec 2021 00:58:05 -0800 Subject: [PATCH] fix maybe_lock_file introduced in previous commit --- src/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history.cpp b/src/history.cpp index 88803661e..0d4022c18 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -380,7 +380,7 @@ bool history_impl_t::maybe_lock_file(int fd, int lock_type) { // is on a remote filesystem. if (abandoned_locking) return false; if (history_t::chaos_mode) return false; - if (path_get_data_is_remote()) return false; + if (!path_get_data_is_remote()) return false; double start_time = timef(); int retval = flock(fd, lock_type);