|
@@ -43,7 +43,6 @@ test_checkdir_perms(void *testdata)
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tor_free(testdir);
|
|
tor_free(testdir);
|
|
|
|
|
|
-
|
|
|
|
/* test: create new dir, CPD_GROUP_READ option set. */
|
|
/* test: create new dir, CPD_GROUP_READ option set. */
|
|
testdir = get_datadir_fname("checkdir_new_groupread");
|
|
testdir = get_datadir_fname("checkdir_new_groupread");
|
|
cpd_chkopts = CPD_CREATE|CPD_GROUP_READ;
|
|
cpd_chkopts = CPD_CREATE|CPD_GROUP_READ;
|
|
@@ -53,7 +52,6 @@ test_checkdir_perms(void *testdata)
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tor_free(testdir);
|
|
tor_free(testdir);
|
|
|
|
|
|
-
|
|
|
|
/* test: check existing dir created with defaults,
|
|
/* test: check existing dir created with defaults,
|
|
and verify with CPD_CREATE only. */
|
|
and verify with CPD_CREATE only. */
|
|
testdir = get_datadir_fname("checkdir_exists_none");
|
|
testdir = get_datadir_fname("checkdir_exists_none");
|
|
@@ -66,7 +64,6 @@ test_checkdir_perms(void *testdata)
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tor_free(testdir);
|
|
tor_free(testdir);
|
|
|
|
|
|
-
|
|
|
|
/* test: check existing dir created with defaults,
|
|
/* test: check existing dir created with defaults,
|
|
and verify with CPD_GROUP_OK option set. */
|
|
and verify with CPD_GROUP_OK option set. */
|
|
testdir = get_datadir_fname("checkdir_exists_groupok");
|
|
testdir = get_datadir_fname("checkdir_exists_groupok");
|
|
@@ -79,7 +76,6 @@ test_checkdir_perms(void *testdata)
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tor_free(testdir);
|
|
tor_free(testdir);
|
|
|
|
|
|
-
|
|
|
|
/* test: check existing dir created with defaults,
|
|
/* test: check existing dir created with defaults,
|
|
and verify with CPD_GROUP_READ option set. */
|
|
and verify with CPD_GROUP_READ option set. */
|
|
testdir = get_datadir_fname("checkdir_exists_groupread");
|
|
testdir = get_datadir_fname("checkdir_exists_groupread");
|
|
@@ -92,7 +88,6 @@ test_checkdir_perms(void *testdata)
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tor_free(testdir);
|
|
tor_free(testdir);
|
|
|
|
|
|
-
|
|
|
|
/* test: check existing dir created with CPD_GROUP_READ,
|
|
/* test: check existing dir created with CPD_GROUP_READ,
|
|
and verify with CPD_GROUP_OK option set. */
|
|
and verify with CPD_GROUP_OK option set. */
|
|
testdir = get_datadir_fname("checkdir_existsread_groupok");
|
|
testdir = get_datadir_fname("checkdir_existsread_groupok");
|
|
@@ -105,7 +100,6 @@ test_checkdir_perms(void *testdata)
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tt_int_op(0, ==, (st.st_mode & unix_verify_optsmask));
|
|
tor_free(testdir);
|
|
tor_free(testdir);
|
|
|
|
|
|
-
|
|
|
|
/* test: check existing dir created with CPD_GROUP_READ,
|
|
/* test: check existing dir created with CPD_GROUP_READ,
|
|
and verify with CPD_GROUP_READ option set. */
|
|
and verify with CPD_GROUP_READ option set. */
|
|
testdir = get_datadir_fname("checkdir_existsread_groupread");
|
|
testdir = get_datadir_fname("checkdir_existsread_groupread");
|