fixed to set permissions 0600 to log files

This commit is contained in:
Jordi Sanfeliu 2018-03-05 16:54:36 +01:00
parent 9dec96237d
commit a812931056
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@
(thanks to Sander Bos for pointing this out)
- Fixed to disable 'echo' when typing the password in './htpasswd.pl'.
(thanks to Sander Bos for pointing this out)
- Fixed to set permissions 0600 to log files.
(thanks to Sander Bos for pointing this out)
3.10.0 - 25-Sep-2017

View File

@ -82,12 +82,14 @@ sub HUP_handler {
close(STDERR);
open(STDOUT, ">> $config{log_file}") || logger("Can't write to LOG: $!");
open(STDERR, ">> $config{log_file}") || logger("Can't write to LOG: $!");
chmod(0600, $config{log_file});
logger("$myself: opening a new log file.");
# create the HTTPd logfile
open(OUT, "> " . $config{httpd_builtin}->{log_file});
close(OUT);
chown($uid, $gid, $config{httpd_builtin}->{log_file});
chmod(0600, $config{httpd_builtin}->{log_file});
}
sub daemonize {