mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
srv0start.c:
Work around the AIX 5.1 security patch ML7 problem in errno when it should be EEXIST
This commit is contained in:
parent
c93fcd19a5
commit
07a0fdeb24
1 changed files with 16 additions and 2 deletions
|
@ -568,7 +568,14 @@ open_or_create_log_file(
|
|||
files[i] = os_file_create(name, OS_FILE_CREATE, OS_FILE_NORMAL,
|
||||
OS_LOG_FILE, &ret);
|
||||
if (ret == FALSE) {
|
||||
if (os_file_get_last_error(FALSE) != OS_FILE_ALREADY_EXISTS) {
|
||||
if (os_file_get_last_error(FALSE) != OS_FILE_ALREADY_EXISTS
|
||||
#ifdef UNIV_AIX
|
||||
/* AIX 5.1 after security patch ML7 may have errno set
|
||||
to 0 here, which causes our function to return 100;
|
||||
work around that AIX problem */
|
||||
&& os_file_get_last_error(FALSE) != 100
|
||||
#endif
|
||||
) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error in creating or opening %s\n", name);
|
||||
|
||||
|
@ -728,7 +735,14 @@ open_or_create_data_files(
|
|||
OS_FILE_NORMAL, OS_DATA_FILE, &ret);
|
||||
|
||||
if (ret == FALSE && os_file_get_last_error(FALSE) !=
|
||||
OS_FILE_ALREADY_EXISTS) {
|
||||
OS_FILE_ALREADY_EXISTS
|
||||
#ifdef UNIV_AIX
|
||||
/* AIX 5.1 after security patch ML7 may have
|
||||
errno set to 0 here, which causes our function
|
||||
to return 100; work around that AIX problem */
|
||||
&& os_file_get_last_error(FALSE) != 100
|
||||
#endif
|
||||
) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error in creating or opening %s\n",
|
||||
name);
|
||||
|
|
Loading…
Add table
Reference in a new issue