message should explain that you probably need to be root.
(Why leave off the final S? Kernighan must have been a *really* slow
typist.)
if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) == -1) {
rprintf(FERROR,"bind failed on port %d: %s\n", port,
strerror(errno));
if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) == -1) {
rprintf(FERROR,"bind failed on port %d: %s\n", port,
strerror(errno));
+ if (errno == EACCES && port < 1024) {
+ rprintf(FERROR, "Note: you must be root to bind "
+ "to low-numbered ports");
+ }