Diff for /embedaddon/sudo/compat/pw_dup.c between versions 1.1 and 1.1.1.3

version 1.1, 2012/05/29 12:26:49 version 1.1.1.3, 2013/10/14 07:56:33
Line 1 Line 1
 /*  /*
 * Copyright (c) 2000, 2002, 2012 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 2000, 2002, 2012-2013
  *        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
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 20 Line 21
   
 #include <config.h>  #include <config.h>
   
   #ifndef HAVE_PW_DUP
   
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <stdio.h>  #include <stdio.h>
Line 64  pw_dup(const struct passwd *pw) Line 67  pw_dup(const struct passwd *pw)
 {  {
         size_t nsize = 0, psize = 0, gsize = 0, dsize = 0, ssize = 0, total;          size_t nsize = 0, psize = 0, gsize = 0, dsize = 0, ssize = 0, total;
 #ifdef HAVE_LOGIN_CAP_H  #ifdef HAVE_LOGIN_CAP_H
        size_t csize;        size_t csize = 0;
 #endif  #endif
         struct passwd *newpw;          struct passwd *newpw;
         char *cp;          char *cp;
Line 102  pw_dup(const struct passwd *pw) Line 105  pw_dup(const struct passwd *pw)
   
         return newpw;          return newpw;
 }  }
   #endif /* HAVE_PW_DUP */

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


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