commit c4e4d8a1dd08932f6054b91ca5c02052ee2bbbc9
parent aeee5e907c5252169e621222beb7ace0f980bef7
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 6 Jan 2018 12:38:05 +0100
Merge pull request #3650 from SomberNight/daemon_lockfile_not_exec
make daemon lockfile not executable
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/daemon.py b/lib/daemon.py
@@ -58,7 +58,7 @@ def get_fd_or_server(config):
lockfile = get_lockfile(config)
while True:
try:
- return os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY), None
+ return os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o644), None
except OSError:
pass
server = get_server(config)