From bbc6f4ca04e4fce52c94922f10e9d0e511d31a3a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 3 Jul 2003 03:12:56 +0000 Subject: We have a real setreuid(2) in OpenBSD >= 3.3 --- gnu/usr.sbin/sendmail/include/sm/conf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/usr.sbin/sendmail/include/sm/conf.h b/gnu/usr.sbin/sendmail/include/sm/conf.h index b64830f31b4..ab574702384 100644 --- a/gnu/usr.sbin/sendmail/include/sm/conf.h +++ b/gnu/usr.sbin/sendmail/include/sm/conf.h @@ -922,7 +922,9 @@ extern unsigned int sleepX __P((unsigned int seconds)); # undef SPT_TYPE # define SPT_TYPE SPT_BUILTIN /* setproctitle is in libc */ # define HASSETLOGIN 1 /* has setlogin(2) */ -# define HASSETREUID 0 /* OpenBSD has broken setreuid(2) emulation */ +# if OpenBSD < 200305 +# define HASSETREUID 0 /* setreuid(2) broken in OpenBSD < 3.3 */ +# endif # define HASSETEGID 1 /* use setegid(2) to set saved gid */ # define HASURANDOMDEV 1 /* has /dev/urandom(4) */ # if OpenBSD >= 200006 -- cgit v1.2.3