From 14a5c9a50d0d1e124c12db4c027f88cf741af672 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sat, 25 May 2019 09:16:03 +0200 Subject: [PATCH] Update certbot/lock.py Co-Authored-By: ohemorange --- certbot/lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot/lock.py b/certbot/lock.py index 18a3432cf..1c2d5c257 100644 --- a/certbot/lock.py +++ b/certbot/lock.py @@ -209,7 +209,7 @@ class _WindowsLockMechanism(_BaseLockMechanism): A Windows lock file mechanism. By default on Windows, acquiring a file handler gives exclusive access to the process and results in an effective lock. However, it is possible to explicitly acquire the - file handler in shared access in terms of read and write, and this is done by security.open + file handler in shared access in terms of read and write, and this is done by filesystem.open and io.open in Python. So an explicit lock needs to be done through the call of msvcrt.locking, that will lock the first byte of the file. In theory, it is also possible to access a file in shared delete access, allowing other processes to delete an