From: rettenbe Date: Mon, 26 May 2008 07:50:12 +0000 (+0000) Subject: bugfix: log file has permission 0600 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=398ebc9bb447fd872cb03f653ebf878145b7437c;p=gosa.git bugfix: log file has permission 0600 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10995 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 1bd774cd2..17dcdff3e 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -244,7 +244,8 @@ sub daemon_log { if(not defined $msg) { return } if(not defined $level) { $level = 1 } if(defined $log_file){ - open(LOG_HANDLE, ">>$log_file", 0600); + open(LOG_HANDLE, ">>$log_file"); + chmod 0600, $log_file; if(not defined open( LOG_HANDLE, ">>$log_file" )) { print STDERR "cannot open $log_file: $!"; return } diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 90c628240..289244446 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -288,7 +288,8 @@ sub daemon_log { if(not defined $msg) { return } if(not defined $level) { $level = 1 } if(defined $log_file){ - open(LOG_HANDLE, ">>$log_file", 0600); + open(LOG_HANDLE, ">>$log_file"); + chmod 0600, $log_file; if(not defined open( LOG_HANDLE, ">>$log_file" )) { print STDERR "cannot open $log_file: $!"; return } diff --git a/gosa-si/gosa-si-server-nobus b/gosa-si/gosa-si-server-nobus index 4a3c2fa41..db8d4447d 100755 --- a/gosa-si/gosa-si-server-nobus +++ b/gosa-si/gosa-si-server-nobus @@ -314,7 +314,8 @@ sub daemon_log { if(not defined $msg) { return } if(not defined $level) { $level = 1 } if(defined $log_file){ - open(LOG_HANDLE, ">>$log_file", 0600); + open(LOG_HANDLE, ">>$log_file"); + chmod 0600, $log_file; if(not defined open( LOG_HANDLE, ">>$log_file" )) { print STDERR "cannot open $log_file: $!"; return }