浏览代码

This time really make abook files get created with correct permissions

pdontthink 16 年之前
父节点
当前提交
ec7a4430aa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      functions/addressbook.php

+ 1 - 0
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) {