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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8c79b456
Commit
8c79b456
authored
Jun 26, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#4276 - socket path too long
parent
07ad0429
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 @
8c79b456
...
@@ -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