tag 305868 patch thanks > The log files account.log and debug.log have the execute bit set, > which is unneeded.
And here's the patch.
#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_file_perms.dpatch by <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad ulog-acctd-0.4.3/src/main.c
/tmp/dpep.pCQmwv/ulog-acctd-0.4.3/src/main.c
--- ulog-acctd-0.4.3/src/main.c 2003-09-29 13:58:13.000000000 +0200
+++ /tmp/dpep.pCQmwv/ulog-acctd-0.4.3/src/main.c 2005-06-28
10:05:28.827189303 +0200
@@ -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, 0644);
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, 0644);
if(acct_file==-1)
{
syslog(LOG_ERR, "error opening accounting file: %m");
signature.asc
Description: Digital signature

