diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-19 17:50:20 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-19 17:50:20 +0000 |
commit | 76d5e2ff487d8e034ba52d2c0ea5ba643667e5ce (patch) | |
tree | f7c2c3d145dbfa5d7c403a03062510926ebf78b0 /nfs | |
parent | fbb96a452b22e1f0b1c6ee037f06c6ef6898c590 (diff) |
(main): Failure to bind privileged ports is indicated by EACCES, not
EPERM.
Diffstat (limited to 'nfs')
-rw-r--r-- | nfs/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |