version 1.18, 2007/08/15 14:22:39 |
version 1.19, 2007/12/03 15:09:47 |
|
|
#include "sudo.h" |
#include "sudo.h" |
|
|
#ifndef lint |
#ifndef lint |
__unused static const char rcsid[] = "$Sudo: logging.c,v 1.168.2.12 2007/08/08 20:07:45 millert Exp $"; |
__unused static const char rcsid[] = "$Sudo: logging.c,v 1.168.2.13 2007/11/25 13:07:38 millert Exp $"; |
#endif /* lint */ |
#endif /* lint */ |
|
|
static void do_syslog __P((int, char *)); |
static void do_syslog __P((int, char *)); |
|
|
va_start(ap); |
va_start(ap); |
#endif |
#endif |
|
|
/* Become root if we are not already to avoid user control */ |
/* Become root if we are not already to avoid user interference */ |
if (geteuid() != 0) |
set_perms(PERM_ROOT); |
set_perms(PERM_ROOT); |
|
|
|
/* Expand printf-style format + args. */ |
/* Expand printf-style format + args. */ |
evasprintf(&message, fmt, ap); |
evasprintf(&message, fmt, ap); |