summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-19 17:50:20 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-19 17:50:20 +0000
commit76d5e2ff487d8e034ba52d2c0ea5ba643667e5ce (patch)
treef7c2c3d145dbfa5d7c403a03062510926ebf78b0 /nfs
parentfbb96a452b22e1f0b1c6ee037f06c6ef6898c590 (diff)
(main): Failure to bind privileged ports is indicated by EACCES, not
EPERM.
Diffstat (limited to 'nfs')
-rw-r--r--nfs/main.c2
1 files changed, 1 insertions, 1 deletions
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. */