mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
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:
parent
c9db775243
commit
6c54181559
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user