Commit b50f022f authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix node daemon log file permissions

The creation of the log file for the node daemon lacks the mode
parameter, so after applying the current umask, the file got 0700
permissions. Restrict this to the correct 0600.

Reviewed-by: schreiberal
parent 8947cf2b
......@@ -592,7 +592,7 @@ def createDaemon():
except OSError: # ERROR, fd wasn't open to begin with (ignored)
pass, os.O_RDWR|os.O_CREAT|os.O_APPEND) # standard input (0), os.O_RDWR|os.O_CREAT|os.O_APPEND, 0600)
# Duplicate standard input to standard output and standard error.
os.dup2(0, 1) # standard output (1)
os.dup2(0, 2) # standard error (2)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment