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
e3a713bf
Commit
e3a713bf
authored
Jun 26, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#4276 - socket path too long
parent
aed4e3f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sql/mysqld.cc
sql/mysqld.cc
+6
-0
No files found.
sql/mysqld.cc
View file @
e3a713bf
...
@@ -1246,6 +1246,12 @@ static void server_init(void)
...
@@ -1246,6 +1246,12 @@ static void server_init(void)
{
{
DBUG_PRINT
(
"general"
,(
"UNIX Socket is %s"
,
mysqld_unix_port
));
DBUG_PRINT
(
"general"
,(
"UNIX Socket is %s"
,
mysqld_unix_port
));
if
(
strlen
(
mysqld_unix_port
)
>
(
sizeof
(
UNIXaddr
.
sun_path
)
-
1
))
{
sql_print_error
(
"The socket file path is too long (> %d): %s"
,
sizeof
(
UNIXaddr
.
sun_path
)
-
1
,
mysqld_unix_port
);
unireg_abort
(
1
);
}
if
((
unix_sock
=
socket
(
AF_UNIX
,
SOCK_STREAM
,
0
))
<
0
)
if
((
unix_sock
=
socket
(
AF_UNIX
,
SOCK_STREAM
,
0
))
<
0
)
{
{
sql_perror
(
"Can't start server : UNIX Socket "
);
/* purecov: inspected */
sql_perror
(
"Can't start server : UNIX Socket "
);
/* purecov: inspected */
...
...
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