From 7943c3956e097b1d9ad50edd5579702013a807e4 Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Thu, 16 Dec 2021 10:45:39 +0800 Subject: [PATCH] add delete_password.patch and revise unixODBC.spec --- delete_password.patch | 18 ++++++++++++++++++ unixODBC.spec | 6 +++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 delete_password.patch diff --git a/delete_password.patch b/delete_password.patch new file mode 100644 index 0000000..9326dbf --- /dev/null +++ b/delete_password.patch @@ -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__, diff --git a/unixODBC.spec b/unixODBC.spec index f08f2d4..fda8af3 100644 --- a/unixODBC.spec +++ b/unixODBC.spec @@ -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 - 2.3.9-3 +- add delete_password.patch (hiding password in unixODBC log) + * Fri Nov 26 2021 Haoran Yang - 2.3.9-2 - add null_dereference_check.patch -- Gitee