artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f32a1d
)
Do not try to unlink the control socket in an unprivileged child
author
florian
<florian@openbsd.org>
Thu, 28 May 2015 17:09:18 +0000
(17:09 +0000)
committer
florian
<florian@openbsd.org>
Thu, 28 May 2015 17:09:18 +0000
(17:09 +0000)
process on shutdown.
Found while working on tame(2).
OK gilles@
usr.sbin/smtpd/control.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/control.c
b/usr.sbin/smtpd/control.c
index
3e203fc
..
b7000f8
100644
(file)
--- a/
usr.sbin/smtpd/control.c
+++ b/
usr.sbin/smtpd/control.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: control.c,v 1.10
2 2015/01/20 17:37:54 deraadt
Exp $ */
+/* $OpenBSD: control.c,v 1.10
3 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);
}