From owner-cvs-usrsbin Sat Apr 1 19:12:31 1995 Return-Path: cvs-usrsbin-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA20585 for cvs-usrsbin-outgoing; Sat, 1 Apr 1995 19:12:31 -0800 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA20547; Sat, 1 Apr 1995 19:10:59 -0800 Date: Sat, 1 Apr 1995 19:10:59 -0800 From: Bill Paul Message-Id: <199504020310.TAA20547@freefall.cdrom.com> To: CVS-commiters, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ypbind ypbind.c Sender: cvs-usrsbin-owner@freebsd.org Precedence: bulk wpaul 95/04/01 19:10:58 Modified: usr.sbin/ypbind ypbind.c Log: Fix long standing bogosity in ypbind: if /var/yp/binding doesn't exist, ypbind is supposed to create it but it doesn't. This is because when it checks the return value for the attempted open() of /var/yp/binding/DOMAIN.VERSION, it tests only for a value of -1. This is bogus because open() doesn't return -1 in this case. Now it checks for < 0 instead. This should make life easier for many NIS-newbies who would otherwise be left scratching their heads wondering why the NIS client stuff won't work despite their best efforts. ("I set the domain name on my machine, and /var/yp exists, but when I start ypbind and try a 'ypcat passwd,' it says it can't bind to a server for this domain! Please help!") *long, heavy sigh*