summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2016-03-01 17:08:14 +0100
committerPeter Palfrader <peter@palfrader.org>2016-03-01 17:08:14 +0100
commit1ef7df551d8efc0a74536006c17bdaa3cbb0931d (patch)
treefcfbd01f83184691a22d72e0883c8cb001ca9f73 /src/or/connection.c
parent9fc472e1a8a53a18dfbd5c9cde2f1c268c335e96 (diff)
downloadtor-1ef7df551d8efc0a74536006c17bdaa3cbb0931d.tar.gz
tor-1ef7df551d8efc0a74536006c17bdaa3cbb0931d.zip
First RelaxDirModeCheck implementation
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 2e1c508894..4e915f1213 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1014,6 +1014,10 @@ check_location_for_unix_socket(const or_options_t *options, const char *path,
flags |= CPD_GROUP_OK;
}
+ if (port->relax_dirmode_check) {
+ flags |= CPD_RELAX_DIRMODE_CHECK;
+ }
+
if (check_private_dir(p, flags, options->User) < 0) {
char *escpath, *escdir;
escpath = esc_for_log(path);