Commit 8a3724a0 authored by Niels Möller's avatar Niels Möller

*** empty log message ***

Rev: src/server_password.c:1.11
parent 8e1dca27
......@@ -50,10 +50,6 @@ struct unix_user *lookup_user(struct lsh_string *name, int free)
{
struct passwd *passwd;
#ifdef HAVE_GETSPNAM
struct spwd *shadowpwd=NULL;
#endif
NEW(unix_user, res);
name = make_cstring(name, free);
......@@ -78,6 +74,8 @@ struct unix_user *lookup_user(struct lsh_string *name, int free)
#ifdef HAVE_GETSPNAM
if (passwd->pw_passwd && !strcmp(passwd->pw_passwd, "x"))
{
struct spwd *shadowpwd;
if (!(shadowpwd = getspnam(name->data)))
{
KILL(res);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment