mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
* hurd/hurdsock.c (_hurd_socket_server): Return the standard error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT. * sunrpc/bindrsvprt.c (bindresvport): Likewise.
This commit is contained in:
parent
4c533566c2
commit
173b756d8f
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user