From owner-cvs-usrbin Fri Sep 1 20:56:35 1995 Return-Path: cvs-usrbin-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id UAA22977 for cvs-usrbin-outgoing; Fri, 1 Sep 1995 20:56:35 -0700 Received: (from wpaul@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id UAA22964 ; Fri, 1 Sep 1995 20:56:25 -0700 Date: Fri, 1 Sep 1995 20:56:25 -0700 From: Bill Paul Message-Id: <199509020356.UAA22964@freefall.FreeBSD.org> To: CVS-commiters, cvs-usrbin Subject: cvs commit: src/usr.bin/chpass chpass.1 chpass.c pw_yp.c pw_yp.h Sender: cvs-usrbin-owner@FreeBSD.org Precedence: bulk wpaul 95/09/01 20:56:24 Modified: usr.bin/chpass chpass.1 chpass.c pw_yp.c pw_yp.h Log: Make use_yp() smarter about figuring out whether a user is local or NIS (or both, or neither). Also add support for -l and -y flags to force behavior to local or NIS. use_yp() also goes out of its way to retrieve the correct password database information (local or NIS) depending on what the situation since getpwent() & co. can't necessarily be trusted in some cases. Also document new flags in man page.