Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
4a26dcf6
Commit
4a26dcf6
authored
20 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
BUG#4276 - socket path too long
parent
9f5a6afa
Changes
1
Hide 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 @
4a26dcf6
...
...
@@ -1246,6 +1246,12 @@ static void server_init(void)
{
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
)
{
sql_perror
(
"Can't start server : UNIX Socket "
);
/* purecov: inspected */
...
...
This diff is collapsed.
Click to expand it.
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