From a75d10d7548e69fb6fd3b9dcf14d357febcc72f4 Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Tue, 21 Aug 2007 19:32:35 -0400
Subject: [PATCH] Removed globals and created private vars

---
 server/plugins-enabled/getmail_plugin.inc.php |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/server/plugins-enabled/getmail_plugin.inc.php b/server/plugins-enabled/getmail_plugin.inc.php
index 65569d4..0e4d279 100644
--- a/server/plugins-enabled/getmail_plugin.inc.php
+++ b/server/plugins-enabled/getmail_plugin.inc.php
@@ -113,6 +113,8 @@
 				// Write the config file.
 				file_put_contents($config_file_path,$tpl);
 				$app->log("Writing Getmail config file: $config_file_path",LOGLEVEL_DEBUG);
+				exec("chmod 400 $config_file_path");
+				exec("chown getmail $config_file_path");
 				unset($tpl);
 				unset($config_file_path);
 				

--
Gitblit v1.9.1