From 76d5e2ff487d8e034ba52d2c0ea5ba643667e5ce Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 19 Apr 1996 17:50:20 +0000 Subject: (main): Failure to bind privileged ports is indicated by EACCES, not EPERM. --- nfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nfs/main.c') diff --git a/nfs/main.c b/nfs/main.c index cbc77ab2..b841d3af 100644 --- a/nfs/main.c +++ b/nfs/main.c @@ -349,7 +349,7 @@ main (int argc, char **argv) addr.sin_port = htons (ntohs (addr.sin_port) - 1); ret = bind (main_udp_socket, (struct sockaddr *)&addr, sizeof (struct sockaddr_in)); - if (ret == -1 && errno == EPERM) + if (ret == -1 && errno == EACCES) { /* We aren't allowed privileged ports; no matter; let the server deny us later if it wants. */ -- cgit v1.2.3