46b1a4aff5
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. |
||
---|---|---|
.. | ||
Makefile | ||
pw_scan.c | ||
pw_scan.h | ||
pwd_mkdb.8 | ||
pwd_mkdb.c |