[Nagios-devel] [PATCH] ndoutils: Typo in ndo2db_db_sql_to_timet for

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH] ndoutils: Typo in ndo2db_db_sql_to_timet for

Post by Guest »

Hi,

I suspect there is a typo (missing bracket) in src/db.c. Pseudo patch:

--- ndoutils.oorig/src/db.c 2007-10-31 19:17:05.000000000 +0100
+++ ndoutils-1.4b8-oracle/src/db.c 2009-04-21 16:56:55.000000000 +0200
@@ -525,7 +607,12 @@ char *ndo2db_db_sql_to_timet(ndo2db_idi
break;
case NDO2DB_DBSERVER_PGSQL:
#ifdef USE_PGSQL
- asprintf(&buf,"UNIX_TIMESTAMP(%s",(field==NULL)?"":field);
+ asprintf(&buf,"UNIX_TIMESTAMP(%s)",(field==NULL)?"":field);






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked