mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
os0file.c:
AIX 5.1 after security patch ML7 seems to contain a bug that instead of EEXIST it sets errno to 0 if a file creation fails because the file already exists. Work around that bug by interpreting errno 0 in AIX as EEXIST. innobase/os/os0file.c: AIX 5.1 after security patch ML7 seems to contain a bug that instead of EEXIST it sets errno to 0 if a file creation fails because the file already exists. Work around that bug by interpreting errno 0 in AIX as EEXIST.
This commit is contained in:
parent
61ffbc31ae
commit
969be90f71
1 changed files with 9 additions and 0 deletions
|
|
@ -291,6 +291,15 @@ os_file_get_last_error(void)
|
|||
return(OS_FILE_NOT_FOUND);
|
||||
} else if (err == EEXIST) {
|
||||
return(OS_FILE_ALREADY_EXISTS);
|
||||
#ifdef UNIV_AIX
|
||||
} else if (err == 0) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: errno is 0. Since AIX 5.1 after security patch ML7 erroneously\n"
|
||||
"InnoDB: sets errno to 0 when it should be EEXIST, we assume that the real\n"
|
||||
"InnoDB: error here was EEXIST.\n");
|
||||
|
||||
return(OS_FILE_ALREADY_EXISTS);
|
||||
#endif
|
||||
} else {
|
||||
return(100 + err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue