]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
authorRoland McGrath <roland@gnu.org>
Mon, 21 Jan 2008 01:35:17 +0000 (01:35 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 21 Jan 2008 01:35:17 +0000 (01:35 +0000)
* hurd/hurdsock.c (_hurd_socket_server): Return the standard
error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
* sunrpc/bindrsvprt.c (bindresvport): Likewise.

hurd/hurdsock.c
sunrpc/bindrsvprt.c

index 07eb6a40c147b608f8078fa9076b9cf53d303af9..a01b8aa85c3581a2eaaccb51b1e1460a3d38ca10 100644 (file)
@@ -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;
index 023ae1723bc86c7d0a39ebc3b9bf2102fe19324d..003c3dfd468e1b4b1f641aec1d08aef439edf718 100644 (file)
@@ -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;
     }