summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-07-03 03:12:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-07-03 03:12:56 +0000
commitbbc6f4ca04e4fce52c94922f10e9d0e511d31a3a (patch)
treee2597a68547f932d8e7d3f89d59afe9c426400b3 /gnu/usr.sbin/sendmail
parent3a1cec2d64f22b9ee6c4b9c9f347c764ad5967cc (diff)
We have a real setreuid(2) in OpenBSD >= 3.3
Diffstat (limited to 'gnu/usr.sbin/sendmail')
-rw-r--r--gnu/usr.sbin/sendmail/include/sm/conf.h4
1 files changed, 3 insertions, 1 deletions
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