diff options
author | 2014-03-13 20:39:27 +0000 | |
---|---|---|
committer | 2014-03-13 20:39:27 +0000 | |
commit | 8946d0ba20fe8251e01223ddace4f98a14270aa8 (patch) | |
tree | 061f00462789f6593a60c0c9f62486c908a46995 | |
parent | smtpd dudes forgot to add their _smtpq user (diff) | |
download | wireguard-openbsd-8946d0ba20fe8251e01223ddace4f98a14270aa8.tar.xz wireguard-openbsd-8946d0ba20fe8251e01223ddace4f98a14270aa8.zip |
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); |