Increase helpfulness in diagnostic message - ypbind running without -ypset or

-ypsetme will prevent use of ypset.  Remind the user to check that it was
started correctly.
This commit is contained in:
Juli Mallett 2007-02-28 22:49:12 +00:00
parent 5e01c01abd
commit a905106075

View File

@ -101,7 +101,7 @@ bind_tohost(struct sockaddr_in *sin, char *dom, char *server)
(xdrproc_t)xdr_ypbind_setdom, &ypsd,
(xdrproc_t)xdr_void, NULL, tv);
if (r) {
warnx("sorry, cannot ypset for domain %s on host", dom);
warnx("sorry, cannot ypset for domain %s on host - make sure ypbind was started with -ypset or -ypsetme", dom);
clnt_destroy(client);
return (YPERR_YPBIND);
}