FreeBSD Bugzilla – Attachment 252821 Details for
Bug 280862
net/libnss-mysql: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
FIx the use of deprecated option
libnss-mysql.patch (text/plain), 1.35 KB, created by
Max Khon
on 2024-08-16 12:37:44 UTC
(
hide
)
Description:
FIx the use of deprecated option
Filename:
MIME Type:
Creator:
Max Khon
Created:
2024-08-16 12:37:44 UTC
Size:
1.35 KB
patch
obsolete
>diff --git a/net/libnss-mysql/Makefile b/net/libnss-mysql/Makefile >index bc4902e6c683..7b7c8f37bc50 100644 >--- a/net/libnss-mysql/Makefile >+++ b/net/libnss-mysql/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= libnss-mysql > PORTVERSION= 1.5 >-PORTREVISION= 5 >+PORTREVISION= 6 > CATEGORIES= net > MASTER_SITES= SF > >diff --git a/net/libnss-mysql/files/patch-src_mysql.c b/net/libnss-mysql/files/patch-src_mysql.c >deleted file mode 100644 >index 11f9a288c6c9..000000000000 >--- a/net/libnss-mysql/files/patch-src_mysql.c >+++ /dev/null >@@ -1,22 +0,0 @@ >---- src/mysql.c.orig 2005-09-04 03:34:02 UTC >-+++ src/mysql.c >-@@ -196,6 +196,7 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult) >- int retval; >- sql_server_t *server = &conf.sql.server; >- unsigned int port; >-+ my_bool reconnect = 1; >- >- DENTER >- >-@@ -238,8 +239,9 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult) >- DSRETURN (NSS_UNAVAIL) >- } >- ci.valid = ntrue; >-- ci.link.reconnect = 0; /* Safety: We can't let MySQL assume socket is >-- still valid; see _nss_mysql_validate_socket */ >-+ /* Safety: We can't let MySQL assume socket is still valid; >-+ see _nss_mysql_validate_socket */ >-+ mysql_options(&ci.link, MYSQL_OPT_RECONNECT, &reconnect); >- DSRETURN (NSS_SUCCESS) >- } >- _nss_mysql_log (LOG_ALERT, "Connection to server '%s' failed: %s",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 280862
: 252821