=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/testsudoers.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/sudo/Attic/testsudoers.c 2004/09/28 15:10:51 1.11 --- src/usr.bin/sudo/Attic/testsudoers.c 2007/07/26 16:10:16 1.12 *************** *** 1,5 **** /* ! * Copyright (c) 1996, 1998-2004 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above --- 1,5 ---- /* ! * Copyright (c) 1996, 1998-2005 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above *************** *** 22,28 **** #define _SUDO_MAIN ! #include "config.h" #include #include --- 22,28 ---- #define _SUDO_MAIN ! #include #include #include *************** *** 75,81 **** #endif /* HAVE_FNMATCH */ #ifndef lint ! static const char rcsid[] = "$Sudo: testsudoers.c,v 1.88 2004/08/02 18:44:58 millert Exp $"; #endif /* lint */ --- 75,81 ---- #endif /* HAVE_FNMATCH */ #ifndef lint ! __unused static const char rcsid[] = "$Sudo: testsudoers.c,v 1.88.2.4 2007/06/12 01:43:01 millert Exp $"; #endif /* lint */ *************** *** 84,90 **** */ void init_parser __P((void)); void dumpaliases __P((void)); - void set_perms_dummy __P((int)); /* * Globals --- 84,89 ---- *************** *** 97,103 **** struct sudo_user sudo_user; extern int clearaliases; extern int pedantic; - void (*set_perms) __P((int)) = set_perms_dummy; /* * Returns TRUE if "s" has shell meta characters in it, --- 96,101 ---- *************** *** 300,306 **** domain = (char *) emalloc(MAXHOSTNAMELEN); if (getdomainname(domain, MAXHOSTNAMELEN) != 0 || *domain == '\0') { ! free(domain); domain = NULL; } } --- 298,304 ---- domain = (char *) emalloc(MAXHOSTNAMELEN); if (getdomainname(domain, MAXHOSTNAMELEN) != 0 || *domain == '\0') { ! efree(domain); domain = NULL; } } *************** *** 317,323 **** } void ! set_perms_dummy(i) int i; { return; --- 315,321 ---- } void ! set_perms(i) int i; { return;