summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
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. */