diff options
-rw-r--r-- | src/rspamd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 17c6a8286..57daf2319 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -272,7 +272,8 @@ detect_priv (struct rspamd_main *rspamd_main) rspamd_main->workers_gid = grp->gr_gid; } else { - rspamd_main->workers_gid = (gid_t)-1; + /* Use the main group of user */ + rspamd_main->workers_gid = pwd->pw_gid; } rspamd_main->workers_uid = pwd->pw_uid; } |