1 --- src/main.c.orig 2004-05-12 11:40:33 +0400
2 +++ src/main.c 2004-05-12 11:40:49 +0400
5 if( cfg->dbg_file != NULL )
7 - dbg_file = open(cfg->dbg_file, O_WRONLY|O_CREAT|O_APPEND, 0777);
8 + dbg_file = open(cfg->dbg_file, O_WRONLY|O_CREAT|O_APPEND, 0600);
11 syslog(LOG_ERR, "error opening debug file: %m");
13 dbg_file=STDERR_FILENO;
16 - acct_file = open(cfg->acct_file, O_WRONLY|O_CREAT|O_APPEND, 0777);
17 + acct_file = open(cfg->acct_file, O_WRONLY|O_CREAT|O_APPEND, 0600);
20 syslog(LOG_ERR, "error opening accounting file: %m");