From ff7c3ba29b767fbf883d73aebef0e9d2cb70c401 Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Wed, 21 Apr 2010 08:29:02 +0000 Subject: Remove unusable ifdef DEBUG code. --- usr.sbin/smtpd/mda.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'usr.sbin/smtpd/mda.c') diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index 475a488036a..65cffd72e7d 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.41 2010/04/20 18:18:36 jacekm Exp $ */ +/* $OpenBSD: mda.c,v 1.42 2010/04/21 08:29:01 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -303,24 +303,18 @@ mda(struct smtpd *env) pw = env->sc_pw; -#ifndef DEBUG if (chroot(pw->pw_dir) == -1) fatal("mda: chroot"); if (chdir("/") == -1) fatal("mda: chdir(\"/\")"); -#else -#warning disabling privilege revocation and chroot in DEBUG MODE -#endif smtpd_process = PROC_MDA; 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("mda: cannot drop privileges"); -#endif LIST_INIT(&env->mda_sessions); -- cgit v1.2.3