getspuid() does not exist (even though it should), use getspnam().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7222 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1999-10-22 13:39:57 +00:00
parent b83619a3aa
commit cadb70df8f

View File

@@ -52,12 +52,12 @@ k_getpwuid (uid_t uid)
struct passwd *p;
p = getpwuid (uid);
#if defined(HAVE_GETSPUID) && defined(HAVE_STRUCT_SPWD)
#if defined(HAVE_GETSPNAM) && defined(HAVE_STRUCT_SPWD)
if (p)
{
struct spwd *spwd;
spwd = getspuid (uid);
spwd = getspnam (p->pw_name);
if (spwd)
p->pw_passwd = spwd->sp_pwdp;
endspent ();