updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ulog-acctd / ulog-acctd-logfile-perms.patch
blobaedf47fbf570a28ee8ae804e058a47f12502ee94
1 --- src/main.c.orig 2004-05-12 11:40:33 +0400
2 +++ src/main.c 2004-05-12 11:40:49 +0400
3 @@ -253,7 +253,7 @@
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);
9 if(dbg_file==-1)
11 syslog(LOG_ERR, "error opening debug file: %m");
12 @@ -266,7 +266,7 @@
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);
18 if(acct_file==-1)
20 syslog(LOG_ERR, "error opening accounting file: %m");