-/* $OpenBSD: control.c,v 1.12 2017/01/09 14:04:31 krw Exp $ */
+/* $OpenBSD: control.c,v 1.13 2018/08/04 11:07:14 mestre Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
close(fd);
}
-void
-control_cleanup(const char *path)
-{
- if (path)
- unlink(path);
-}
-
int
control_accept(int listenfd)
{
-/* $OpenBSD: ntpd.c,v 1.114 2018/08/02 13:05:34 mestre Exp $ */
+/* $OpenBSD: ntpd.c,v 1.115 2018/08/04 11:07:14 mestre Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
* Constraint processes are forked with certificates in memory,
* then privdrop into chroot before speaking to the outside world.
*/
- if (pledge("stdio rpath cpath inet settime proc exec id", NULL) == -1)
+ if (pledge("stdio rpath inet settime proc exec id", NULL) == -1)
err(1, "pledge");
while (quit == 0) {
msgbuf_clear(&ibuf->w);
free(ibuf);
- control_cleanup(CTLSOCKET);
log_info("Terminating");
return (0);
}
-/* $OpenBSD: ntpd.h,v 1.135 2017/05/30 23:30:48 benno Exp $ */
+/* $OpenBSD: ntpd.h,v 1.136 2018/08/04 11:07:14 mestre Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
int control_init(char *);
int control_listen(int);
void control_shutdown(int);
-void control_cleanup(const char *);
int control_accept(int);
struct ctl_conn *control_connbyfd(int);
int control_close(int);