aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2016-11-02 11:20:49 +1100
committerteor <teor2345@gmail.com>2016-11-02 11:20:49 +1100
commit6c541815592b76ecb7dc639123bce894bf47b67f (patch)
tree224c2d227667ebc003b5ac6e2827b0caabc2b5d7 /src/or/rendservice.c
parentc9db775243dc83c3300e7a88e0ad6afc74671825 (diff)
downloadtor-6c541815592b76ecb7dc639123bce894bf47b67f.tar.gz
tor-6c541815592b76ecb7dc639123bce894bf47b67f.zip
Remove redundant group permission code from rend_service_check_private_dir
check_private_dir already does this for existing directories.
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 610ed759ab..dca775e041 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1265,15 +1265,6 @@ rend_service_check_private_dir(const rend_service_t *s, int create)
if (check_private_dir(s->directory, check_opts, get_options()->User) < 0) {
return -1;
}
-#ifndef _WIN32
- if (s->dir_group_readable && create) {
- /* Only new dirs created get new opts, also enforce group read. */
- if (chmod(s->directory, 0750)) {
- log_warn(LD_FS,"Unable to make %s group-readable.", s->directory);
- }
- }
-#endif
-
return 0;
}