From owner-cvs-usrbin Mon Jun 24 10:18:16 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA07632 for cvs-usrbin-outgoing; Mon, 24 Jun 1996 10:18:16 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA07608; Mon, 24 Jun 1996 10:18:07 -0700 (PDT) Date: Mon, 24 Jun 1996 10:18:07 -0700 (PDT) From: Bill Paul Message-Id: <199606241718.KAA07608@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/chpass edit.c pw_yp.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/06/24 10:18:06 Branch: usr.bin/chpass RELENG_2_1_0 Modified: usr.bin/chpass edit.c pw_yp.c Log: Merge in a couple of fixes from the HEAD: pw_yp.c: - Fix silly bug in copy_yp_pass(). - In yp_submit(), use the password from the pw struct passed in as an argument instead of calling getpwnam() to find it: for one thing this is unnecessary since we already have the crypted password, and for another it cause us to pick the wrong password in the event that the user exists both in the local database and in YP. edit.c: - Change shell restriction policy: if the shell field isn't restricted and it's valid, or if the the user is root, allow the shell field to be edited. Revision Changes Path 1.4.4.3 +8 -0 src/usr.bin/chpass/edit.c 1.1.2.2 +23 -13 src/usr.bin/chpass/pw_yp.c