This time really make abook files get created with correct permissions
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 29 Jul 2009 03:35:07 +0000 (03:35 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 29 Jul 2009 03:35:07 +0000 (03:35 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13803 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php

index d9b7aa79c1eb49dfa1ee82d800ca1b420c7b9721..f8589a2f9acea68cef2cbe407c301d0cdbfa448f 100644 (file)
@@ -54,6 +54,7 @@ function addressbook_init($showerr = true, $onlylocal = false) {
         /* File */
         $filename = getHashedFile($username, $data_dir, "$username.abook");
         $r = $abook->add_backend('local_file', Array('filename' => $filename,
+                                                     'umask' => 0077,
                                                      'line_length' => $abook_file_line_length,
                                                      'create'   => true));
         if(!$r && $showerr) {