From owner-cvs-usrsbin Mon Jul 1 12:40:47 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA28857 for cvs-usrsbin-outgoing; Mon, 1 Jul 1996 12:40:47 -0700 (PDT) Received: (from guido@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA28221; Mon, 1 Jul 1996 12:38:54 -0700 (PDT) Date: Mon, 1 Jul 1996 12:38:54 -0700 (PDT) From: Guido van Rooij Message-Id: <199607011938.MAA28221@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin, cvs-usrsbin Subject: cvs commit: src/usr.bin/chpass chpass.c src/usr.bin/passwd local_passwd.c src/usr.sbin/vipw pw_util.c pw_util.h vipw.c src/usr.sbin/pwd_mkdb pwd_mkdb.c src/usr.sbin/rpc.yppasswdd pw_util.c yppasswdd_extern.h yppasswdd_server.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk guido 96/07/01 12:38:54 Modified: usr.bin/chpass chpass.c usr.bin/passwd local_passwd.c usr.sbin/pwd_mkdb pwd_mkdb.c usr.sbin/rpc.yppasswdd pw_util.c yppasswdd_extern.h yppasswdd_server.c usr.sbin/vipw pw_util.c pw_util.h vipw.c Log: Implement incremental passwd database updates. This is done by ading a '-u' option to pwd_mkdb and adding this option to utilities invoking it. Further, the filling of both the secure and insecure databases has been merged into one loop giving also a performance improvemnet. Note that I did *not* change the adduser command. I don't read perl (it is a write only language anyway). The change will drastically improve performance for passwd and friends with large passwd files. Vipw's performance won't change. In order to do that some kind of diff should be made between the old and new master.passwd and depending the amount of changes, an incremental or complete update of the databases should be agreed upon. Revision Changes Path 1.9 +4 -2 src/usr.bin/chpass/chpass.c 1.9 +2 -2 src/usr.bin/passwd/local_passwd.c 1.11 +218 -133 src/usr.sbin/pwd_mkdb/pwd_mkdb.c 1.2 +8 -2 src/usr.sbin/rpc.yppasswdd/pw_util.c 1.5 +2 -2 src/usr.sbin/rpc.yppasswdd/yppasswdd_extern.h 1.6 +4 -4 src/usr.sbin/rpc.yppasswdd/yppasswdd_server.c 1.5 +8 -2 src/usr.sbin/vipw/pw_util.c 1.2 +1 -1 src/usr.sbin/vipw/pw_util.h 1.3 +1 -1 src/usr.sbin/vipw/vipw.c