From owner-cvs-usrsbin Mon Oct 21 20:18:21 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA10932 for cvs-usrsbin-outgoing; Mon, 21 Oct 1996 20:18:21 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA10907; Mon, 21 Oct 1996 20:18:13 -0700 (PDT) Date: Mon, 21 Oct 1996 20:18:13 -0700 (PDT) From: Bill Paul Message-Id: <199610220318.UAA10907@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pwd_mkdb pwd_mkdb.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/10/21 20:18:13 Modified: usr.sbin/pwd_mkdb pwd_mkdb.c Log: Begin closing out PR #1519 (this requires a change to chpass too, and both changes need to be pulled into the stable branch). The problem here is that when pwd_mkdb creates /etc/passwd, it turns empty UID and GID fields into zeroes. To fix this, we check the _PWF_UID and _PWF_GID bits in the pw_fields flag: if the bits are not set, we print an empty field instead of a zero. This way, you don't get zeroes in the UID or GID fields unless you explicit want them. Revision Changes Path 1.15 +12 -4 src/usr.sbin/pwd_mkdb/pwd_mkdb.c