From: pdontthink Date: Wed, 29 Jul 2009 03:35:07 +0000 (+0000) Subject: This time really make abook files get created with correct permissions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1794d99316ac199aa68361e08a38b27faa07d5c4;p=squirrelmail.git This time really make abook files get created with correct permissions git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13803 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/addressbook.php b/functions/addressbook.php index d9b7aa79..f8589a2f 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -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) {