Diff for /embedaddon/sudo/plugins/sudoers/getspwuid.c between versions 1.1.1.1 and 1.1.1.3

version 1.1.1.1, 2012/02/21 16:23:02 version 1.1.1.3, 2013/07/22 10:46:12
Line 1 Line 1
 /*  /*
 * Copyright (c) 1996, 1998-2005, 2010 * Copyright (c) 1996, 1998-2005, 2010-2012
  *      Todd C. Miller <Todd.Miller@courtesan.com>   *      Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 23 Line 23
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/param.h>  
 #include <stdio.h>  #include <stdio.h>
 #ifdef STDC_HEADERS  #ifdef STDC_HEADERS
 # include <stdlib.h>  # include <stdlib.h>
Line 82  char * Line 81  char *
 sudo_getepw(const struct passwd *pw)  sudo_getepw(const struct passwd *pw)
 {  {
     char *epw = NULL;      char *epw = NULL;
       debug_decl(sudo_getepw, SUDO_DEBUG_AUTH)
   
     /* If there is a function to check for shadow enabled, use it... */      /* If there is a function to check for shadow enabled, use it... */
 #ifdef HAVE_ISCOMSEC  #ifdef HAVE_ISCOMSEC
Line 142  sudo_getepw(const struct passwd *pw) Line 142  sudo_getepw(const struct passwd *pw)
 done:  done:
 #endif  #endif
     /* If no shadow password, fall back on regular password. */      /* If no shadow password, fall back on regular password. */
    return estrdup(epw ? epw : pw->pw_passwd);    debug_return_str(estrdup(epw ? epw : pw->pw_passwd));
 }  }
   
 void  void
 sudo_setspent(void)  sudo_setspent(void)
 {  {
       debug_decl(sudo_setspent, SUDO_DEBUG_AUTH)
   
 #ifdef HAVE_GETPRPWNAM  #ifdef HAVE_GETPRPWNAM
     setprpwent();      setprpwent();
 #endif  #endif
Line 163  sudo_setspent(void) Line 165  sudo_setspent(void)
 #ifdef HAVE_GETAUTHUID  #ifdef HAVE_GETAUTHUID
     setauthent();      setauthent();
 #endif  #endif
       debug_return;
 }  }
   
 void  void
 sudo_endspent(void)  sudo_endspent(void)
 {  {
       debug_decl(sudo_endspent, SUDO_DEBUG_AUTH)
   
 #ifdef HAVE_GETPRPWNAM  #ifdef HAVE_GETPRPWNAM
     endprpwent();      endprpwent();
 #endif  #endif
Line 183  sudo_endspent(void) Line 188  sudo_endspent(void)
 #ifdef HAVE_GETAUTHUID  #ifdef HAVE_GETAUTHUID
     endauthent();      endauthent();
 #endif  #endif
       debug_return;
 }  }

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>