From 1794d99316ac199aa68361e08a38b27faa07d5c4 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 29 Jul 2009 03:35:07 +0000 Subject: [PATCH] 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 --- functions/addressbook.php | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.25.1