We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb8cc7 commit c216922Copy full SHA for c216922
src/filelock/_unix.py
@@ -35,7 +35,7 @@ def _acquire(self) -> None:
35
open_flags = os.O_RDWR | os.O_CREAT | os.O_TRUNC
36
fd = os.open(self._lock_file, open_flags, self._mode)
37
try:
38
- os.chmod(fd, self._mode)
+ os.fchmod(fd, self._mode)
39
except PermissionError:
40
pass # This locked is not owned by this UID
41
whitelist.txt
@@ -5,6 +5,7 @@ caplog
5
eacces
6
enosys
7
extlinks
8
+fchmod
9
filelock
10
filemode
11
fspath
0 commit comments