From a19686589b37084132bdcf0901efb29bdd3f34c0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Jan 2008 08:19:43 +0000 Subject: [PATCH] Closes #309 - The Copy&Paste directory (LDAP_DUMP_PATH) will now only be readable by the webservers user. Created files too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8239 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_CopyPasteHandler.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gosa-core/include/class_CopyPasteHandler.inc b/gosa-core/include/class_CopyPasteHandler.inc index 60bf1270e..1c0ff8046 100644 --- a/gosa-core/include/class_CopyPasteHandler.inc +++ b/gosa-core/include/class_CopyPasteHandler.inc @@ -83,6 +83,7 @@ class CopyPasteHandler { /* Create patch if it doesn't exists */ if(!is_dir(LDAP_DUMP_PATH)){ @mkdir(LDAP_DUMP_PATH); + @chmod(LDAP_DUMP_PATH,0700); } /* check if we are able to create a new file the given directory */ @@ -132,6 +133,7 @@ class CopyPasteHandler { /* Create patch if it doesn't exists */ if(!is_dir($path)){ @mkdir($path); + @chmod($path,0700); } /* check if we are able to create a new file the given directory */ -- 2.30.2