From owner-freebsd-commit Fri Apr 21 17:25:39 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA26212 for commit-outgoing; Fri, 21 Apr 1995 17:25:39 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA26118 for cvs-usrbin-outgoing; Fri, 21 Apr 1995 17:24:06 -0700 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA26106 ; Fri, 21 Apr 1995 17:24:01 -0700 Date: Fri, 21 Apr 1995 17:24:01 -0700 From: Bill Paul Message-Id: <199504220024.RAA26106@freefall.cdrom.com> To: CVS-commiters, cvs-usrbin Subject: cvs commit: src/usr.bin/ypwhich ypwhich.c Sender: commit-owner@FreeBSD.org Precedence: bulk wpaul 95/04/21 17:24:00 Modified: usr.bin/ypwhich ypwhich.c Log: Make Rod Grimes's life a little simpler: replace all exit(1)'s with seperate exit values depending on the error. (The error values are #defined and commented near the top of the file for clarity). This is to help write a small bit of shell script for /etc/rc that calls ypwhich a few times after ypbind is invoked to make sure we're actually bound to a server before proceeding (if we aren't, the automounter can fail if it's using NIS maps).