Do not dereference a null pointer for a malformed line in master.passwd.
authorPeter Avalos <pavalos@theshell.com>
Sun, 28 Dec 2008 06:25:56 +0000 (01:25 -0500)
committerPeter Avalos <pavalos@theshell.com>
Sat, 3 Jan 2009 16:47:23 +0000 (11:47 -0500)
commitfeed9a49bec3def4c17281a9fd8c0b830fe4ec95
tree8129905e33a059d9cf954299552788f3e5a4ab38
parent48d677177dd02f4d45404881b3286206c2cf8dbb
Do not dereference a null pointer for a malformed line in passwd.

Instead, just copy it silently to prevent programs from bailing.  While
I'm here, remove some (void) casts.

Obtained-from: FreeBSD
lib/libutil/Makefile
lib/libutil/libutil.h
lib/libutil/pw_util.c