mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
Cleanup during code review
Faster detection of wrong table names (like PRN) on windows include/my_sys.h: Added check_if_legal_filename() mysys/my_access.c: Added check_if_legal_filename() Set errno if my_access() fails mysys/my_fopen.c: USe check_if_legal_filename() instead of my_access() to detect wrong file names on windows mysys/my_open.c: USe check_if_legal_filename() instead of my_access() to detect wrong file names on windows sql/sql_lex.cc: Portability fix sql/sql_parse.cc: Simple cleanup sql/sql_repl.cc: Cleanup during code review
This commit is contained in:
parent
b36f9f2eed
commit
549f56dc3d
7 changed files with 132 additions and 56 deletions
|
|
@ -578,6 +578,7 @@ extern int my_access(const char *path, int amode);
|
|||
#else
|
||||
#define my_access access
|
||||
#endif
|
||||
extern int check_if_legal_filename(const char *path);
|
||||
|
||||
#ifndef TERMINATE
|
||||
extern void TERMINATE(FILE *file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue