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:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user