HomeFreeBSD

In pw_userlock, set 'name' to NULL when we encounter an all number string

Description

In pw_userlock, set 'name' to NULL when we encounter an all number string
because it is also used as an indicator of whether a name or an UID is
being used and we may have undefined results as 'name' may contain
uninitialized stack contents.

MFC after: 2 weeks

Details

Provenance
delphijAuthored on
Parents
rS290173: Use strlcpy().
Branches
Unknown
Tags
Unknown