Committed with a small tweak:

> -     printuser(pw, 1);
> +     name = getlogin();
> +     printuser(name);

Here, `name' should also be checked with:

if (name == NULL || *name == '\0')

I didn't see the point of passing `name' as a variable, so I moved
the getlogin() call down into printuser().

Thanks!

Reply via email to