浏览代码

fix two typos

meejah 12 年之前
父节点
当前提交
ae18c0812e
共有 2 个文件被更改,包括 2 次插入 和 2 次删除
  1. 1 1
      doc/tor.1.txt
  2. 1 1
      src/test/test_checkdir.c

+ 1 - 1
doc/tor.1.txt

@@ -2078,7 +2078,7 @@ The following options are used to configure a hidden service.
     service descriptors to the directory servers. This information  is also
     service descriptors to the directory servers. This information  is also
     uploaded whenever it changes. (Default: 1 hour)
     uploaded whenever it changes. (Default: 1 hour)
 
 
-[[HiddenServiceDirGroupReadable]] **HiddenServiceGroupReadable** **0**|**1**::
+[[HiddenServiceDirGroupReadable]] **HiddenServiceDirGroupReadable** **0**|**1**::
     If this option is set to 1, allow the filesystem group to read the
     If this option is set to 1, allow the filesystem group to read the
     hidden service directory and hostname file. If the option is set to 0,
     hidden service directory and hostname file. If the option is set to 0,
     only owner is able to read the hidden service directory. (Default: 0)
     only owner is able to read the hidden service directory. (Default: 0)

+ 1 - 1
src/test/test_checkdir.c

@@ -23,7 +23,7 @@ test_checkdir_perms(void *testdata)
   /* setup data directory before tests. */
   /* setup data directory before tests. */
   tor_free(options->DataDirectory);
   tor_free(options->DataDirectory);
   options->DataDirectory = tor_strdup(get_fname(subdir));
   options->DataDirectory = tor_strdup(get_fname(subdir));
-  tt_int_op(mkdir(options->DataDirectory, STAT_RWXU), ==, 0);
+  tt_int_op(mkdir(options->DataDirectory, 0750), ==, 0);
 
 
   /* test: create new dir, no flags. */
   /* test: create new dir, no flags. */
   testdir = get_datadir_fname("checkdir_new_none");
   testdir = get_datadir_fname("checkdir_new_none");