From 08c7ceb5dff3db5ba28de8370bae23f4bf6ec444 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Fri, 13 Nov 2015 14:17:02 +0000 Subject: Permit filesystem group to be root --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/util.c') 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); -- cgit v1.2.3-54-g00ecf