version 1.17, 2007/07/26 16:10:16 |
version 1.18, 2007/08/15 14:22:39 |
|
|
#include "sudo.h" |
#include "sudo.h" |
|
|
#ifndef lint |
#ifndef lint |
__unused static const char rcsid[] = "$Sudo: logging.c,v 1.168.2.11 2007/07/24 15:52:37 millert Exp $"; |
__unused static const char rcsid[] = "$Sudo: logging.c,v 1.168.2.12 2007/08/08 20:07:45 millert Exp $"; |
#endif /* lint */ |
#endif /* lint */ |
|
|
static void do_syslog __P((int, char *)); |
static void do_syslog __P((int, char *)); |
|
|
size_t len, maxlen; |
size_t len, maxlen; |
char *p, *tmp, save; |
char *p, *tmp, save; |
const char *fmt; |
const char *fmt; |
const char fmt_first[] = "%8s : %s"; |
const char *fmt_first = "%8s : %s"; |
const char fmt_contd[] = "%8s : (command continued) %s"; |
const char *fmt_contd = "%8s : (command continued) %s"; |
|
|
/* |
/* |
* Log the full line, breaking into multiple syslog(3) calls if necessary |
* Log the full line, breaking into multiple syslog(3) calls if necessary |