Remove redundant group permission code from rend_service_check_private_dir

check_private_dir already does this for existing directories.
This commit is contained in:
teor 2016-11-02 11:20:49 +11:00
parent c9db775243
commit 6c54181559
No known key found for this signature in database
GPG Key ID: 450CBA7F968F094B

View File

@ -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) { if (check_private_dir(s->directory, check_opts, get_options()->User) < 0) {
return -1; 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; return 0;
} }