diff --git a/coverity-fixes.patch b/coverity-fixes.patch index e024519..abf2623 100644 --- a/coverity-fixes.patch +++ b/coverity-fixes.patch @@ -9,7 +9,7 @@ diff -Naur unixODBC-2.3.1.orig/DriverManager/SQLGetCursorName.c unixODBC-2.3.1/D thread_protect( SQL_HANDLE_STMT, statement ); - if ( !buffer_length < 0 ) -+ if ( !(buffer_length < 0) ) ++ if ( buffer_length < 0 ) { dm_log_write( __FILE__, __LINE__, @@ -21,7 +21,7 @@ diff -Naur unixODBC-2.3.1.orig/DriverManager/SQLGetCursorNameW.c unixODBC-2.3.1/ thread_protect( SQL_HANDLE_STMT, statement ); - if ( !buffer_length < 0 ) -+ if ( !(buffer_length < 0) ) ++ if ( buffer_length < 0 ) { dm_log_write( __FILE__, __LINE__, diff --git a/unixODBC.spec b/unixODBC.spec index 58f8a7d..7ba19df 100644 --- a/unixODBC.spec +++ b/unixODBC.spec @@ -1,7 +1,7 @@ Summary: A complete ODBC driver manager for Linux Name: unixODBC Version: 2.3.1 -Release: 4%{?dist} +Release: 5%{?dist} Group: System Environment/Libraries URL: http://www.unixODBC.org/ # Programs are GPL, libraries are LGPL, except News Server library is GPL. @@ -151,6 +151,10 @@ rm -rf $RPM_BUILD_ROOT %postun -p /sbin/ldconfig %changelog +* Thu Jul 4 2013 Honza Horak 2.3.1-5 +- Fix Coverity patch + Resolves: #981060 + * Tue Mar 19 2013 Tom Lane 2.3.1-4 - Fix assorted small bugs found by Coverity Related: #760877