diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-03-13 20:39:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-03-13 20:39:28 +0000 |
commit | 73609dffc47ae99c63bb55c06c7e7c98d2946965 (patch) | |
tree | 7f48a716e168d5aed62fbef36e165d0c58fa571f | |
parent | 9c9b723fa3be0ee8759098d72d77e3a3731c86e2 (diff) |
When failing to find the required privsep user entry, it is not cool at
all to fall back to a different user entry. It is decidedly unsafe.
ok tedu.
-rw-r--r-- | usr.sbin/smtpd/queue_backend.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c index a1e7acc3bab..cd9f1530934 100644 --- a/usr.sbin/smtpd/queue_backend.c +++ b/usr.sbin/smtpd/queue_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_backend.c,v 1.47 2013/10/26 12:27:59 eric Exp $ */ +/* $OpenBSD: queue_backend.c,v 1.48 2014/03/13 20:39:27 deraadt Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@poolp.org> @@ -116,8 +116,6 @@ queue_init(const char *name, int server) pwq = getpwnam(SMTPD_QUEUE_USER); if (pwq == NULL) - pwq = getpwnam(SMTPD_USER); - if (pwq == NULL) errx(1, "unknown user %s", SMTPD_USER); tree_init(&evpcache_tree); |