ports/net-mgmt/cacti/files/patch-poller_maintenance.php
Danilo G. Baio b74e71d1ac net-mgmt/cacti: Update to 1.1.17
- Regenerate patches

Changes:	https://www.cacti.net/release_notes.php?version=1.1.17

PR:		221499
Submitted by:	Daniel Austin <freebsd-ports@dan.me.uk> (maintainer)
2017-08-14 23:20:01 +00:00

19 lines
609 B
PHP

--- poller_maintenance.php.orig 2017-08-13 04:06:37 UTC
+++ poller_maintenance.php
@@ -197,14 +197,14 @@ function logrotate_rotatenow () {
$log = read_config_option('path_cactilog');
if ($log == '') {
- $log = $config['base_path'] . '/log/cacti.log';
+ $log = '/var/log/cacti/log';
}
set_config_option('logrotate_lastrun', time());
clearstatcache();
- if (is_writable(dirname($log) . '/') && is_writable($log)) {
+ if (is_writable('/var/log/cacti') && is_writable($log)) {
$perms = octdec(substr(decoct( fileperms($log) ), 2));
$owner = fileowner($log);
$group = filegroup($log);