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
2a042f1b
Commit
2a042f1b
authored
Apr 30, 2011
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge of fix for bug#11757855 from mysql-5.1 -> mysql-5.5.
parents
0137e2a2
c3ac7439
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
5 deletions
+28
-5
cmake/os/WindowsCache.cmake
cmake/os/WindowsCache.cmake
+4
-0
cmd-line-utils/libedit/el.c
cmd-line-utils/libedit/el.c
+16
-5
config.h.cmake
config.h.cmake
+4
-0
configure.cmake
configure.cmake
+4
-0
No files found.
cmake/os/WindowsCache.cmake
View file @
2a042f1b
...
@@ -101,6 +101,10 @@ SET(HAVE_IPV6_V6ONLY 1 CACHE INTERNAL "")
...
@@ -101,6 +101,10 @@ SET(HAVE_IPV6_V6ONLY 1 CACHE INTERNAL "")
SET
(
HAVE_ISINF CACHE INTERNAL
""
)
SET
(
HAVE_ISINF CACHE INTERNAL
""
)
SET
(
HAVE_ISNAN CACHE INTERNAL
""
)
SET
(
HAVE_ISNAN CACHE INTERNAL
""
)
SET
(
HAVE_ISSETUGID CACHE INTERNAL
""
)
SET
(
HAVE_ISSETUGID CACHE INTERNAL
""
)
SET
(
HAVE_GETUID CACHE INTERNAL
""
)
SET
(
HAVE_GETEUID CACHE INTERNAL
""
)
SET
(
HAVE_GETGID CACHE INTERNAL
""
)
SET
(
HAVE_GETEGID CACHE INTERNAL
""
)
SET
(
HAVE_LANGINFO_H CACHE INTERNAL
""
)
SET
(
HAVE_LANGINFO_H CACHE INTERNAL
""
)
SET
(
HAVE_LDIV 1 CACHE INTERNAL
""
)
SET
(
HAVE_LDIV 1 CACHE INTERNAL
""
)
SET
(
HAVE_LIMITS_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_LIMITS_H 1 CACHE INTERNAL
""
)
...
...
cmd-line-utils/libedit/el.c
View file @
2a042f1b
...
@@ -478,7 +478,13 @@ el_source(EditLine *el, const char *fname)
...
@@ -478,7 +478,13 @@ el_source(EditLine *el, const char *fname)
fp
=
NULL
;
fp
=
NULL
;
if
(
fname
==
NULL
)
{
if
(
fname
==
NULL
)
{
#ifdef HAVE_ISSETUGID
/* XXXMYSQL: Bug#49967 */
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) && \
defined(HAVE_GETGID) && defined(HAVE_GETEGID)
#define HAVE_IDENTITY_FUNCS 1
#endif
#if (defined(HAVE_ISSETUGID) || defined(HAVE_IDENTITY_FUNCS))
static
const
char
elpath
[]
=
"/.editrc"
;
static
const
char
elpath
[]
=
"/.editrc"
;
/* XXXMYSQL: Portability fix (for which platforms?) */
/* XXXMYSQL: Portability fix (for which platforms?) */
#ifdef MAXPATHLEN
#ifdef MAXPATHLEN
...
@@ -486,9 +492,13 @@ el_source(EditLine *el, const char *fname)
...
@@ -486,9 +492,13 @@ el_source(EditLine *el, const char *fname)
#else
#else
char
path
[
4096
];
char
path
[
4096
];
#endif
#endif
#ifdef HAVE_ISSETUGID
if
(
issetugid
())
if
(
issetugid
())
return
(
-
1
);
return
(
-
1
);
#elif defined(HAVE_IDENTITY_FUNCS)
if
(
getuid
()
!=
geteuid
()
||
getgid
()
!=
getegid
())
return
(
-
1
);
#endif
if
((
ptr
=
getenv
(
"HOME"
))
==
NULL
)
if
((
ptr
=
getenv
(
"HOME"
))
==
NULL
)
return
(
-
1
);
return
(
-
1
);
if
(
strlcpy
(
path
,
ptr
,
sizeof
(
path
))
>=
sizeof
(
path
))
if
(
strlcpy
(
path
,
ptr
,
sizeof
(
path
))
>=
sizeof
(
path
))
...
@@ -498,9 +508,10 @@ el_source(EditLine *el, const char *fname)
...
@@ -498,9 +508,10 @@ el_source(EditLine *el, const char *fname)
fname
=
path
;
fname
=
path
;
#else
#else
/*
/*
* If issetugid() is missing, always return an error, in order
* If issetugid() or the above mentioned get[e][u|g]id()
* to keep from inadvertently opening up the user to a security
* functions are missing, always return an error, in order
* hole.
* to keep from inadvertently opening up the user to a
* security hole.
*/
*/
return
(
-
1
);
return
(
-
1
);
#endif
#endif
...
...
config.h.cmake
View file @
2a042f1b
...
@@ -174,6 +174,10 @@
...
@@ -174,6 +174,10 @@
#cmakedefine gmtime_r @gmtime_r@
#cmakedefine gmtime_r @gmtime_r@
#cmakedefine HAVE_INITGROUPS 1
#cmakedefine HAVE_INITGROUPS 1
#cmakedefine HAVE_ISSETUGID 1
#cmakedefine HAVE_ISSETUGID 1
#cmakedefine HAVE_GETUID 1
#cmakedefine HAVE_GETEUID 1
#cmakedefine HAVE_GETGID 1
#cmakedefine HAVE_GETEGID 1
#cmakedefine HAVE_ISNAN 1
#cmakedefine HAVE_ISNAN 1
#cmakedefine HAVE_ISINF 1
#cmakedefine HAVE_ISINF 1
#cmakedefine HAVE_LARGE_PAGE_OPTION 1
#cmakedefine HAVE_LARGE_PAGE_OPTION 1
...
...
configure.cmake
View file @
2a042f1b
...
@@ -362,6 +362,10 @@ CHECK_FUNCTION_EXISTS (getwd HAVE_GETWD)
...
@@ -362,6 +362,10 @@ CHECK_FUNCTION_EXISTS (getwd HAVE_GETWD)
CHECK_FUNCTION_EXISTS
(
gmtime_r HAVE_GMTIME_R
)
CHECK_FUNCTION_EXISTS
(
gmtime_r HAVE_GMTIME_R
)
CHECK_FUNCTION_EXISTS
(
initgroups HAVE_INITGROUPS
)
CHECK_FUNCTION_EXISTS
(
initgroups HAVE_INITGROUPS
)
CHECK_FUNCTION_EXISTS
(
issetugid HAVE_ISSETUGID
)
CHECK_FUNCTION_EXISTS
(
issetugid HAVE_ISSETUGID
)
CHECK_FUNCTION_EXISTS
(
getuid HAVE_GETUID
)
CHECK_FUNCTION_EXISTS
(
geteuid HAVE_GETEUID
)
CHECK_FUNCTION_EXISTS
(
getgid HAVE_GETGID
)
CHECK_FUNCTION_EXISTS
(
getegid HAVE_GETEGID
)
CHECK_FUNCTION_EXISTS
(
ldiv HAVE_LDIV
)
CHECK_FUNCTION_EXISTS
(
ldiv HAVE_LDIV
)
CHECK_FUNCTION_EXISTS
(
localtime_r HAVE_LOCALTIME_R
)
CHECK_FUNCTION_EXISTS
(
localtime_r HAVE_LOCALTIME_R
)
CHECK_FUNCTION_EXISTS
(
longjmp HAVE_LONGJMP
)
CHECK_FUNCTION_EXISTS
(
longjmp HAVE_LONGJMP
)
...
...
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