Ticket #19953: datadir-group-readable.patch

File datadir-group-readable.patch, 744 bytes (added by redfish, 3 years ago)

Patch that fixes the issue.

Line 
1diff -r orig/tor-0.2.8.6/src/or/router.c tor-0.2.8.6/src/or/router.c
2837c837,840
3<   if (check_private_dir(options->DataDirectory, CPD_CREATE, options->User)) {
4---
5>   cpd_check_t cpd_opts = CPD_CREATE;
6>   if (options->DataDirectoryGroupReadable)
7>       cpd_opts |= CPD_GROUP_READ;
8>   if (check_private_dir(options->DataDirectory, cpd_opts, options->User)) {
9diff -r orig/tor-0.2.8.6/src/or/routerkeys.c tor-0.2.8.6/src/or/routerkeys.c
10772c772,775
11<     if (check_private_dir(options->DataDirectory, CPD_CREATE, options->User)) {
12---
13>     cpd_check_t cpd_opts = CPD_CREATE;
14>     if (options->DataDirectoryGroupReadable)
15>         cpd_opts |= CPD_GROUP_READ;
16>     if (check_private_dir(options->DataDirectory, cpd_opts, options->User)) {