[dovecot-cvs] dovecot/src/lib restrict-access.c,1.13,1.14
cras at dovecot.org
cras at dovecot.org
Sat Aug 28 12:20:01 EEST 2004
Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv20162/lib
Modified Files:
restrict-access.c
Log Message:
Allow group id to be 0 even with disallow_root. So setting valid_first_gid
to 0 now actually works.
Index: restrict-access.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/restrict-access.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- restrict-access.c 16 Jun 2004 02:04:02 -0000 1.13
+++ restrict-access.c 28 Aug 2004 09:19:59 -0000 1.14
@@ -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");
}
More information about the dovecot-cvs
mailing list