diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-07-05 06:04:20 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-07-05 06:04:20 +0000 |
commit | 590e5a6c7fdf4c2753ac566f4ef8f3772b7b5df8 (patch) | |
tree | 07933a8ecbcae308fd6d5b04ada2f2601b7b5171 /sys/dev | |
parent | 8d044a31ae66f5b1da099b92bc39b058306c72e6 (diff) | |
download | FreeBSD-src-590e5a6c7fdf4c2753ac566f4ef8f3772b7b5df8.zip FreeBSD-src-590e5a6c7fdf4c2753ac566f4ef8f3772b7b5df8.tar.gz |
The ypprot_err() function incorrectly maps YP_NODOM to YPERR_NODOM.
Strange as it sounds, it should map to YPERR_DOMAIN instead.
The YP_NODOM protocol error code is generally returned by ypserv when you
ask it for data from a domain that it doesn't support. By contrast,
the YPERR_NODOM error code means 'local domain name not set.'
Consequently, this incorrect mapping leads to yperr_string() generating
a very confusing error message. YPERR_DOMAIN says 'couldn't
bind to a server which serves this domain' which is much closer
to the truth.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions