Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c22e7f2d
Commit
c22e7f2d
authored
Jun 21, 2006
by
jani@ua141d10.elisa.omakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Bug#18246 "compilation error with tcp_wrapper"
parent
6043f298
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
5 deletions
+63
-5
include/Makefile.am
include/Makefile.am
+1
-1
include/my_libwrap.h
include/my_libwrap.h
+19
-0
mysys/Makefile.am
mysys/Makefile.am
+1
-1
mysys/my_libwrap.c
mysys/my_libwrap.c
+39
-0
sql/mysqld.cc
sql/mysqld.cc
+3
-3
No files found.
include/Makefile.am
View file @
c22e7f2d
...
...
@@ -31,7 +31,7 @@ noinst_HEADERS = config-win.h config-os2.h config-netware.h \
my_aes.h my_tree.h hash.h thr_alarm.h
\
thr_lock.h t_ctype.h violite.h md5.h base64.h
\
mysql_version.h.in my_handler.h my_time.h decimal.h
\
my_user.h
my_user.h
my_libwrap.h
# mysql_version.h are generated
CLEANFILES
=
mysql_version.h my_config.h readline openssl
...
...
include/my_libwrap.h
0 → 100644
View file @
c22e7f2d
/* Copyright (C) 2000 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
extern
void
my_fromhost
(
struct
request_info
*
req
);
extern
int
my_hosts_access
(
struct
request_info
*
req
);
extern
char
*
my_eval_client
(
struct
request_info
*
req
);
mysys/Makefile.am
View file @
c22e7f2d
...
...
@@ -56,7 +56,7 @@ libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \
my_gethostbyname.c rijndael.c my_aes.c sha1.c
\
my_handler.c my_netware.c my_largepage.c
\
my_memmem.c
\
my_windac.c my_access.c base64.c
my_windac.c my_access.c base64.c
my_libwrap.c
EXTRA_DIST
=
thr_alarm.c thr_lock.c my_pthread.c my_thr_init.c
\
thr_mutex.c thr_rwlock.c
libmysys_a_LIBADD
=
@THREAD_LOBJECTS@
...
...
mysys/my_libwrap.c
0 → 100644
View file @
c22e7f2d
/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h>
#ifdef HAVE_LIBWRAP
#include <tcpd.h>
#include <syslog.h>
#ifdef NEED_SYS_SYSLOG_H
#include <sys/syslog.h>
#endif
/* NEED_SYS_SYSLOG_H */
#endif
void
my_fromhost
(
struct
request_info
*
req
)
{
fromhost
(
req
);
}
int
my_hosts_access
(
struct
request_info
*
req
)
{
hosts_access
(
req
);
}
char
*
my_eval_client
(
struct
request_info
*
req
)
{
eval_client
(
req
);
}
sql/mysqld.cc
View file @
c22e7f2d
...
...
@@ -4072,8 +4072,8 @@ pthread_handler_t handle_connections_sockets(void *arg __attribute__((unused)))
struct
request_info
req
;
signal
(
SIGCHLD
,
SIG_DFL
);
request_init
(
&
req
,
RQ_DAEMON
,
libwrapName
,
RQ_FILE
,
new_sock
,
NULL
);
fromhost
(
&
req
);
if
(
!
hosts_access
(
&
req
))
my_
fromhost
(
&
req
);
if
(
!
my_
hosts_access
(
&
req
))
{
/*
This may be stupid but refuse() includes an exit(0)
...
...
@@ -4081,7 +4081,7 @@ pthread_handler_t handle_connections_sockets(void *arg __attribute__((unused)))
clean_exit() - same stupid thing ...
*/
syslog
(
deny_severity
,
"refused connect from %s"
,
eval_client
(
&
req
));
my_
eval_client
(
&
req
));
/*
C++ sucks (the gibberish in front just translates the supplied
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment