Группа :: Система/Серверы
Пакет: ulog-acctd
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: ulog-acctd-logfile-perms.patch
--- src/main.c.orig 2004-05-12 11:40:33 +0400
+++ src/main.c 2004-05-12 11:40:49 +0400
@@ -253,7 +253,7 @@
if( cfg->dbg_file != NULL )
{
- dbg_file = open(cfg->dbg_file, O_WRONLY|O_CREAT|O_APPEND, 0777);
+ dbg_file = open(cfg->dbg_file, O_WRONLY|O_CREAT|O_APPEND, 0600);
if(dbg_file==-1)
{
syslog(LOG_ERR, "error opening debug file: %m");
@@ -266,7 +266,7 @@
dbg_file=STDERR_FILENO;
}
- acct_file = open(cfg->acct_file, O_WRONLY|O_CREAT|O_APPEND, 0777);
+ acct_file = open(cfg->acct_file, O_WRONLY|O_CREAT|O_APPEND, 0600);
if(acct_file==-1)
{
syslog(LOG_ERR, "error opening accounting file: %m");