Mercurial > hg > mercurial-source
changeset 35707:bfcd0d227972 stable
server: drop executable bit from daemon log file
The logfile option was unused, so it was okay until now.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 25 Oct 2017 21:20:01 +0900 |
parents | a6a322193a02 |
children | 8b95e420e248 |
files | mercurial/server.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/server.py +++ b/mercurial/server.py @@ -93,7 +93,8 @@ nullfd = os.open(os.devnull, os.O_RDWR) logfilefd = nullfd if logfile: - logfilefd = os.open(logfile, os.O_RDWR | os.O_CREAT | os.O_APPEND) + logfilefd = os.open(logfile, os.O_RDWR | os.O_CREAT | os.O_APPEND, + 0o666) os.dup2(nullfd, 0) os.dup2(logfilefd, 1) os.dup2(logfilefd, 2)