From: Roland McGrath Date: Mon, 21 Jan 2008 01:35:17 +0000 (+0000) Subject: 2008-01-20 Samuel Thibault X-Git-Tag: cvs/fedora-glibc-20080131T0821~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=173b756d8f7f1b6b35ef00a62ea8cdb74a6217be;p=thirdparty%2Fglibc.git 2008-01-20 Samuel Thibault * hurd/hurdsock.c (_hurd_socket_server): Return the standard error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT. * sunrpc/bindrsvprt.c (bindresvport): Likewise. --- diff --git a/hurd/hurdsock.c b/hurd/hurdsock.c index 07eb6a40c14..a01b8aa85c3 100644 --- a/hurd/hurdsock.c +++ b/hurd/hurdsock.c @@ -92,7 +92,7 @@ _hurd_socket_server (int domain, int dead) if (server == MACH_PORT_NULL && errno == ENOENT) /* If the server node is absent, we don't support that protocol. */ - errno = EPFNOSUPPORT; + errno = EAFNOSUPPORT; __mutex_unlock (&lock); HURD_CRITICAL_END; diff --git a/sunrpc/bindrsvprt.c b/sunrpc/bindrsvprt.c index 023ae1723bc..003c3dfd468 100644 --- a/sunrpc/bindrsvprt.c +++ b/sunrpc/bindrsvprt.c @@ -61,7 +61,7 @@ bindresvport (int sd, struct sockaddr_in *sin) } else if (sin->sin_family != AF_INET) { - __set_errno (EPFNOSUPPORT); + __set_errno (EAFNOSUPPORT); return -1; }