Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2498:9232711b7a07 HEAD
Allow group id to be 0 even with disallow_root. So setting valid_first_gid
to 0 now actually works.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 28 Aug 2004 12:19:59 +0300 |
parents | 5cab421f36be |
children | fc2ec85f95ca |
files | src/lib/restrict-access.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/restrict-access.c Sat Aug 28 12:17:42 2004 +0300 +++ b/src/lib/restrict-access.c Sat Aug 28 12:19:59 2004 +0300 @@ -199,7 +199,7 @@ i_fatal("We couldn't drop root privileges"); } - if ((gid != 0 && uid != 0) || disallow_root) { + if (gid != 0) { if (getgid() == 0 || getegid() == 0 || setgid(0) == 0) i_fatal("We couldn't drop root group privileges"); }