* Dhiraj Shah <[email protected]> [2014-01-24 11:20]:
> I will like to report a bug in openntpd.

you haven't mentioned what OS you use it on, whch is very relevant
here.

> @@ -138,7 +138,7 @@ client_query(struct ntp_peer *p)
>                       fatal("client_query socket");
>               if (connect(p->query->fd, sa, SA_LEN(sa)) == -1) {
>                       if (errno == ECONNREFUSED || errno == ENETUNREACH ||
> -                         errno == EHOSTUNREACH) {
> +                         errno == EPERM || errno == EACCES || errno == 
> EHOSTUNREACH) {

the bug is in your OS.
connect is not allowed to return EPERM per posix.

what next, dealing with ENOEXEC from connect?

-- 
Henning Brauer, [email protected], [email protected]
BS Web Services GmbH, http://bsws.de, Full-Service ISP
Secure Hosting, Mail and DNS Services. Dedicated Servers, Root to Fully Managed
Henning Brauer Consulting, http://henningbrauer.com/

Reply via email to