passwords. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@516 ec53bebd-3082-4978-b11e-865c3cabbd6b
		
			
				
	
	
		
			29 lines
		
	
	
		
			415 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			415 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifdef HAVE_CONFIG_H
 | 
						|
#include <config.h>
 | 
						|
RCSID("$Id$");
 | 
						|
#endif /* HAVE_CONFIG_H */
 | 
						|
 | 
						|
#include "roken.h"
 | 
						|
#ifdef HAVE_SHADOW_H
 | 
						|
#include <shadow.h>
 | 
						|
#endif
 | 
						|
 | 
						|
struct passwd *
 | 
						|
k_getpwnam (char *user)
 | 
						|
{
 | 
						|
     struct passwd *p;
 | 
						|
 | 
						|
     p = getpwnam (user);
 | 
						|
#ifdef HAVE_GETSPNAM
 | 
						|
     if(p)
 | 
						|
     {
 | 
						|
	  struct spwd *spwd;
 | 
						|
 | 
						|
	  spwd = getspnam (user);
 | 
						|
	  if (spwd)
 | 
						|
	       p->pw_passwd = spwd->sp_pwdp;
 | 
						|
     }
 | 
						|
#endif
 | 
						|
     return p;
 | 
						|
}
 |