Code

Closes #309 - The Copy&Paste directory (LDAP_DUMP_PATH) will now only be readable...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jan 2008 08:19:43 +0000 (08:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jan 2008 08:19:43 +0000 (08:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8239 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_CopyPasteHandler.inc

index 60bf1270ed02194ccf5005d5c3c66e978d016e2c..1c0ff80460452d389ae298b341860677b4b53ea0 100644 (file)
@@ -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 */