Просмотр исходного кода

compile nrpe - Solaris 9 doesn't have isblank()

Fix for issue http://tracker.nagios.org/view.php?id=370

Changed compares from isblank() to isspace()
John C. Frickson 10 лет назад
Родитель
Сommit
caaf600d9a
2 измененных файлов с 13 добавлено и 2 удалено
  1. 11 0
      Changelog
  2. 2 2
      src/acl.c

+ 11 - 0
Changelog

@@ -23,12 +23,19 @@ FIXES
 - allowed_hosts doesn't work, if one of the hostnames can't be resolved by dns (John Frickson)
 - allowed_hosts doesn't work with a hostname resolving to an IPv6 address (John Frickson)
 - Return UNKNOWN when issues occur (Andrew Widdersheim)
+- NRPE returns OK if check can't be executed (Andrew Widdersheim)
+- nrpe 2.15 [regression in Added SRC support on AIX - 2.14] (frphoebus)
+- compile nrpe - Solaris 9 doesn't have isblank() (lilo, John Frickson)
+
+
 
 2.15 - 09/06/2013
 -----------------
 - Now compiles on HP-UX (Grant Byers)
 - Added support for IPv6 (Leo Baltus, Eric Stanley)
 
+
+
 2.14 - 12/21/2012
 -----------------
 - Added configure option to allow bash command substitutions, disabled by default [bug #400] (Eric Stanley)
@@ -37,6 +44,8 @@ FIXES
 - Updated RPM SPEC file to support creating RPMs on AIX (Eric Stanley)
 - Updated logging to support compiling on AIX (Eric Stanley)
 
+
+
 2.13 - 11/11/2011
 -----------------
 - Applied Kaspersky Labs supplied patch for extending allowed_hosts (Konstantin Malov)
@@ -44,6 +53,7 @@ FIXES
 - Updated to support compiling on Solaris 10 (thanks to Kevin Pendleton)
 
 
+
 2.12 - 03/10/2008
 -----------------
 - Fix for unterminated multiline plugin (garbage) output (Krzysztof Oledzki)
@@ -57,6 +67,7 @@ FIXES
 - Added --with-log-facility option to control syslog logging (Ryan Ordway and Brian Seklecki)
 
 
+
 2.10 - 10/19/2007
 -----------------
 - Moved PDF docs to docs/ subdirectory, added OpenOffice source document

+ 2 - 2
src/acl.c

@@ -533,8 +533,8 @@ int is_an_allowed_host(int family, void *host)
 void trim( char *src, char *dest) {
 	char *sptr, *dptr;
 
-	for( sptr = src; isblank( *sptr) && *sptr; sptr++); /* Jump past leading spaces */
-	for( dptr = dest; !isblank( *sptr) && *sptr; ) {
+	for( sptr = src; isspace( *sptr) && *sptr; sptr++); /* Jump past leading spaces */
+	for( dptr = dest; !isspace( *sptr) && *sptr; ) {
 		*dptr = *sptr;
 		sptr++;
 		dptr++;