now works with 4.2BSD syslog (blech)
This commit is contained in:
@@ -233,7 +233,12 @@ void log_error(code)
|
|||||||
send_mail();
|
send_mail();
|
||||||
|
|
||||||
#ifdef SYSLOG
|
#ifdef SYSLOG
|
||||||
|
#ifdef Syslog_facility
|
||||||
openlog(Syslog_ident, Syslog_options, Syslog_facility);
|
openlog(Syslog_ident, Syslog_options, Syslog_facility);
|
||||||
|
#else
|
||||||
|
openlog(Syslog_ident, Syslog_options);
|
||||||
|
#endif /* Syslog_facility */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Log the full line, breaking into multiple syslog(3) calls if necesary
|
* Log the full line, breaking into multiple syslog(3) calls if necesary
|
||||||
*/
|
*/
|
||||||
|
3
sudo.h
3
sudo.h
@@ -222,6 +222,7 @@ typedef struct list {
|
|||||||
/*
|
/*
|
||||||
* Syslog(3) parameters
|
* Syslog(3) parameters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef SYSLOG
|
#ifdef SYSLOG
|
||||||
# include <syslog.h>
|
# include <syslog.h>
|
||||||
# ifndef Syslog_ident
|
# ifndef Syslog_ident
|
||||||
@@ -230,7 +231,7 @@ typedef struct list {
|
|||||||
# ifndef Syslog_options
|
# ifndef Syslog_options
|
||||||
# define Syslog_options 0
|
# define Syslog_options 0
|
||||||
# endif
|
# endif
|
||||||
# ifndef Syslog_facility
|
# if !defined(Syslog_facility) && defined(LOG_LOCAL2)
|
||||||
# define Syslog_facility LOG_LOCAL2
|
# define Syslog_facility LOG_LOCAL2
|
||||||
# endif
|
# endif
|
||||||
# ifndef Syslog_priority_OK
|
# ifndef Syslog_priority_OK
|
||||||
|
Reference in New Issue
Block a user