[icinga-checkins] icinga.org: icinga-nrpe/cmaser/fixes: fix for #293 indefined LOG_FTP and LOG_AUTHPRIV

git at icinga.org git at icinga.org
Sat Jul 24 10:45:01 CEST 2010


Module: icinga-nrpe
Branch: cmaser/fixes
Commit: c8563c7c873b84ce29083f5e32105c03fd81cea5
URL:    https://git.icinga.org/?p=icinga-nrpe.git;a=commit;h=c8563c7c873b84ce29083f5e32105c03fd81cea5

Author: Christoph Maser <cmr at financial.com>
Date:   Sat Jul 24 10:44:23 2010 +0200

fix for #293 indefined LOG_FTP and LOG_AUTHPRIV

---

 src/nrpe.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/nrpe.c b/src/nrpe.c
index 3ac0fdc..1920397 100644
--- a/src/nrpe.c
+++ b/src/nrpe.c
@@ -593,6 +593,10 @@ int read_config_dir(char *dirname){
 /* determines facility to use with syslog */
 int get_log_facility(char *varvalue){
 
+#ifndef LOG_AUTHPRIV
+       define LOG_AUTHPRIV LOG_AUTH
+#endif
+
 	if(!strcmp(varvalue,"kern"))
 		log_facility=LOG_KERN;
 	else if(!strcmp(varvalue,"user"))
@@ -615,8 +619,10 @@ int get_log_facility(char *varvalue){
 		log_facility=LOG_CRON;
 	else if(!strcmp(varvalue,"authpriv"))
 		log_facility=LOG_AUTHPRIV;
+#ifdef LOG_FTP
 	else if(!strcmp(varvalue,"ftp"))
 		log_facility=LOG_FTP;
+#endif
 	else if(!strcmp(varvalue,"local0"))
 		log_facility=LOG_LOCAL0;
 	else if(!strcmp(varvalue,"local1"))





More information about the icinga-checkins mailing list