summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJamie Nguyen <j@jamielinux.com>2015-11-13 14:17:02 +0000
committerNick Mathewson <nickm@torproject.org>2015-12-10 20:00:06 -0500
commit08c7ceb5dff3db5ba28de8370bae23f4bf6ec444 (patch)
tree7ba9700bbd1a713bce2e46f26bb8b7b5599981c3 /src/common
parentd68b7fd4422f6ea1cad18a26b6a46b61bc182285 (diff)
downloadtor-08c7ceb5dff3db5ba28de8370bae23f4bf6ec444.tar.gz
tor-08c7ceb5dff3db5ba28de8370bae23f4bf6ec444.zip
Permit filesystem group to be root
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index ce3646cd64..6d522de434 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2143,7 +2143,7 @@ check_private_dir(const char *dirname, cpd_check_t check,
return -1;
}
if ( (check & (CPD_GROUP_OK|CPD_GROUP_READ))
- && (st.st_gid != running_gid) ) {
+ && (st.st_gid != running_gid) && (st.st_gid != 0)) {
struct group *gr;
char *process_groupname = NULL;
gr = getgrgid(running_gid);