[dovecot-cvs] dovecot/src/lib restrict-access.c,1.4,1.5
cras at procontrol.fi
cras at procontrol.fi
Wed Dec 18 04:23:15 EET 2002
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv6204/src/lib
Modified Files:
restrict-access.c
Log Message:
Don't bother trying to use setreuid(), setuid() check should be enough and
openbsd complains about it being deprecated.
Index: restrict-access.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/restrict-access.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- restrict-access.c 17 Dec 2002 03:00:44 -0000 1.4
+++ restrict-access.c 18 Dec 2002 02:23:13 -0000 1.5
@@ -91,11 +91,7 @@
i_fatal("setuid(%ld) failed: %m", (long) uid);
/* just extra verification */
-#ifdef HAVE_SETREUID
- if (setreuid((uid_t)-1, 0) == 0)
-#else
if (setuid(0) == 0)
-#endif
i_fatal("We couldn't drop root privileges");
}
}
More information about the dovecot-cvs
mailing list