Show
Ignore:
Timestamp:
03/30/09 16:19:10 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1238429950 +0000
git-parent:

[9a3bb6635e137b31c2c26ec15280df4b5dfa600e]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1238429950 +0000
Message:

persist the mode and use it on reopen

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_log.c

    rf99cf46 rae34340  
    2626posix_logio_open(noit_log_stream_t ls) { 
    2727  int fd; 
    28   fd = open(ls->path, O_CREAT|O_WRONLY|O_APPEND, 0664); 
     28  ls->mode = 0664; 
     29  fd = open(ls->path, O_CREAT|O_WRONLY|O_APPEND, ls->mode); 
    2930  if(fd < 0) { 
    3031    ls->op_ctx = NULL; 
     
    3940    int newfd, oldfd; 
    4041    oldfd = (int)ls->op_ctx; 
    41     newfd = open(ls->path, O_CREAT|O_WRONLY|O_APPEND); 
     42    newfd = open(ls->path, O_CREAT|O_WRONLY|O_APPEND, ls->mode); 
    4243    if(newfd >= 0) { 
    4344      ls->op_ctx = (void *)newfd; 
  • src/utils/noit_log.h

    r84d6f13 rae34340  
    3030  int enabled:1; 
    3131  int debug:1; 
     32  int mode; 
    3233  char *path; 
    3334  logops_t *ops;