[dovecot-cvs] dovecot/src/lib restrict-access.c,1.7,1.8
cras at procontrol.fi
cras at procontrol.fi
Tue Jan 14 04:03:58 EET 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv20943
Modified Files:
restrict-access.c
Log Message:
Don't check for dropped root gid privileges if our uid is still root.
Index: restrict-access.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/restrict-access.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- restrict-access.c 19 Dec 2002 01:02:35 -0000 1.7
+++ restrict-access.c 14 Jan 2003 02:03:56 -0000 1.8
@@ -97,7 +97,7 @@
i_fatal("We couldn't drop root privileges");
}
- if (gid != 0 || disallow_root) {
+ if ((gid != 0 && uid != 0) || disallow_root) {
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