From 34b0dfa2ce04ea65ebff14b4e27f0d8bb61c70f8 Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 28 May 2015 17:09:18 +0000 Subject: [PATCH] Do not try to unlink the control socket in an unprivileged child process on shutdown. Found while working on tame(2). OK gilles@ --- usr.sbin/smtpd/control.c | 3 +-- 1 file changed, 1 insertion(+), 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 @@ -304,7 +304,6 @@ static void control_shutdown(void) { log_info("info: control process exiting"); - unlink(SMTPD_SOCKET); _exit(0); } -- 2.20.1