summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2012-08-20 09:34:54 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2012-08-20 09:34:54 +0000
commit786f06e3b17a929477fa3a773dd095a980825eca (patch)
tree8ca61286f1f4df0d23210ed305491411fa2085b1 /usr.sbin
parente3ccbbf9ae01a87b8ef74204a3cb73abf31c8edb (diff)
chroot scheduler in /var/empty instead of /var/spool/smtpd now that eric@ fixed the initialization layer violation
committing on behalf of gilles@ ok gilles@ chl@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/scheduler.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/scheduler.c b/usr.sbin/smtpd/scheduler.c
index 4e9cd83014a..5a23bdac977 100644
--- a/usr.sbin/smtpd/scheduler.c
+++ b/usr.sbin/smtpd/scheduler.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scheduler.c,v 1.13 2012/08/19 15:06:36 chl Exp $ */
+/* $OpenBSD: scheduler.c,v 1.14 2012/08/20 09:34:53 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -229,8 +229,7 @@ scheduler(void)
purge_config(PURGE_EVERYTHING);
pw = env->sc_pw;
-
- if (chroot(PATH_SPOOL) == -1)
+ if (chroot(pw->pw_dir) == -1)
fatal("scheduler: chroot");
if (chdir("/") == -1)
fatal("scheduler: chdir(\"/\")");