Changeset 1928

Show
Ignore:
Timestamp:
09/01/08 12:57:47 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1927 r1928  
    112008-09-01  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/logger_writer.c: Open the logs with perms 0640 rather 
     4        than 0644. It is not "Others"' business what the server does. 
    25 
    36        * cherokee/main.c (figure_pid_file_path): Fixes the functionality, 
  • cherokee/trunk/cherokee/logger_writer.c

    r1785 r1928  
    229229 
    230230        case cherokee_logger_writer_stderr: 
    231                 /* Nothing to do, syslog already opened at startup. 
    232                  */ 
    233231                writer->fd = STDERR_FILENO; 
    234232                return ret_ok; 
    235233 
    236234        case cherokee_logger_writer_file: 
    237                 writer->fd = open (writer->filename.buf, O_APPEND | O_WRONLY | O_CREAT | O_LARGEFILE, 0644); 
     235                writer->fd = open (writer->filename.buf, O_APPEND | O_WRONLY | O_CREAT | O_LARGEFILE, 0640); 
    238236                if (writer->fd == -1) { 
    239237                        PRINT_MSG ("Couldn't open '%s' for appending\n", writer->filename.buf);