Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 1996 20:18:13 -0700 (PDT)
From:      Bill Paul <wpaul>
To:        CVS-committers, cvs-all, cvs-usrsbin
Subject:   cvs commit:  src/usr.sbin/pwd_mkdb pwd_mkdb.c
Message-ID:  <199610220318.UAA10907@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610220318.UAA10907>