From owner-freebsd-commit Tue Jul 4 23:04:28 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA04859 for commit-outgoing; Tue, 4 Jul 1995 23:04:28 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA04846 for cvs-lib-outgoing; Tue, 4 Jul 1995 23:04:25 -0700 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA04836 ; Tue, 4 Jul 1995 23:04:22 -0700 Date: Tue, 4 Jul 1995 23:04:22 -0700 From: Bill Paul Message-Id: <199507050604.XAA04836@freefall.cdrom.com> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/yp yplib.c Sender: commit-owner@FreeBSD.org Precedence: bulk wpaul 95/07/04 23:04:22 Modified: lib/libc/yp yplib.c Log: 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.