summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/queue.c
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-04-21 08:29:02 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-04-21 08:29:02 +0000
commitff7c3ba29b767fbf883d73aebef0e9d2cb70c401 (patch)
treec82d395ff4f7f2edc236b3b9f101bf4980bc04ae /usr.sbin/smtpd/queue.c
parentf3f472692cad7a7553896df3a0073b9117a82ed6 (diff)
Remove unusable ifdef DEBUG code.
Diffstat (limited to 'usr.sbin/smtpd/queue.c')
-rw-r--r--usr.sbin/smtpd/queue.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c
index 9225facffb1..5c693608d6d 100644
--- a/usr.sbin/smtpd/queue.c
+++ b/usr.sbin/smtpd/queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.c,v 1.78 2010/04/20 15:34:56 jacekm Exp $ */
+/* $OpenBSD: queue.c,v 1.79 2010/04/21 08:29:01 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -253,24 +253,18 @@ queue(struct smtpd *env)
pw = env->sc_pw;
-#ifndef DEBUG
if (chroot(PATH_SPOOL) == -1)
fatal("queue: chroot");
if (chdir("/") == -1)
fatal("queue: chdir(\"/\")");
-#else
-#warning disabling privilege revocation and chroot in DEBUG MODE
-#endif
smtpd_process = PROC_QUEUE;
setproctitle("%s", env->sc_title[smtpd_process]);
-#ifndef DEBUG
if (setgroups(1, &pw->pw_gid) ||
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("queue: cannot drop privileges");
-#endif
imsg_callback = queue_imsg;
event_init();