summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2015-05-28 17:09:19 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2015-05-28 17:09:19 +0000
commit0087702081e90359550a0a1d848e7a2295b3246a (patch)
tree39f57a873bba972841f0a08439a25c6bb2023e9f /usr.sbin
parentc459272772cd7979e01f0a3fce30fe4bf05b65ab (diff)
Do not try to unlink the control socket in an unprivileged child
process on shutdown. Found while working on tame(2). OK gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/control.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index 3e203fce219..b7000f84638 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.102 2015/01/20 17:37:54 deraadt Exp $ */
+/* $OpenBSD: control.c,v 1.103 2015/05/28 17:09:18 florian Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
@@ -304,7 +304,6 @@ static void
control_shutdown(void)
{
log_info("info: control process exiting");
- unlink(SMTPD_SOCKET);
_exit(0);
}