add delete_password.patch and revise unixODBC.spec

This commit is contained in:
yanghaoran 2021-12-16 10:45:39 +08:00
parent d491888e47
commit 7943c3956e
2 changed files with 23 additions and 1 deletions

18
delete_password.patch Normal file
View File

@ -0,0 +1,18 @@
diff -rNu unixODBC-2.3.9/DriverManager/SQLConnect.c unixODBC-2.3.9-revised/DriverManager/SQLConnect.c
--- unixODBC-2.3.9/DriverManager/SQLConnect.c 2020-02-06 19:09:42.000000000 +0800
+++ unixODBC-2.3.9-revised/DriverManager/SQLConnect.c 2021-12-16 11:11:40.406421100 +0800
@@ -3746,12 +3746,10 @@
sprintf( connection -> msg, "\n\t\tEntry:\
\n\t\t\tConnection = %p\
\n\t\t\tServer Name = %s\
-\n\t\t\tUser Name = %s\
-\n\t\t\tAuthentication = %s",
+\n\t\t\tUser Name = %s",
connection,
__string_with_length( s1, server_name, name_length1 ),
- __string_with_length( s2, user_name, name_length2 ),
- __string_with_length_pass( s3, authentication, name_length3 ));
+ __string_with_length( s2, user_name, name_length2 ));
dm_log_write( __FILE__,
__LINE__,

View File

@ -1,12 +1,13 @@
Name: unixODBC
Version: 2.3.9
Release: 2
Release: 3
Summary: Open-source project that implements the ODBC API
License: GPLv2+ and LGPLv2+
URL: http://www.unixODBC.org/
Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz
Source1: odbcinst.ini
Patch0000: null_dereference_check.patch
Patch0001: delete_password.patch
Conflicts: iodbc
BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex readline-devel
@ -89,6 +90,9 @@ find doc -name 'Makefile*' | xargs rm
%exclude %{_datadir}/libtool
%changelog
* Thu Dec 16 2021 Haoran Yang <yanghaoran7@huawei.com> - 2.3.9-3
- add delete_password.patch (hiding password in unixODBC log)
* Fri Nov 26 2021 Haoran Yang <yanghaoran7@huawei.com> - 2.3.9-2
- add null_dereference_check.patch