|
|
|
|
|
by tredre3
27 days ago
|
|
It's not a C thing, it's a Linux thing. The asterisk is relevant to how crypt() is used for /etc/shadow. If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not
be able to use a unix password to log in (but the user may log in the system by other means).
|
|
So they made the (very bad, but motivated by C's broken design/conventions) decision to return a magic string instead.