mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.6 into 10.11
This commit is contained in:
@@ -54,7 +54,7 @@ size_t my_system_page_size= 8192; /* Default if no sysconf() */
|
||||
|
||||
ulonglong my_thread_stack_size= (sizeof(void*) <= 4)? 65536: ((256-16)*1024);
|
||||
|
||||
static ulong atoi_octal(const char *str)
|
||||
static mode_t atoi_octal(const char *str)
|
||||
{
|
||||
long int tmp;
|
||||
while (*str && my_isspace(&my_charset_latin1, *str))
|
||||
@@ -62,7 +62,7 @@ static ulong atoi_octal(const char *str)
|
||||
str2int(str,
|
||||
(*str == '0' ? 8 : 10), /* Octalt or decimalt */
|
||||
0, INT_MAX, &tmp);
|
||||
return (ulong) tmp;
|
||||
return (mode_t) tmp;
|
||||
}
|
||||
|
||||
MYSQL_FILE *mysql_stdin= NULL;
|
||||
@@ -155,10 +155,10 @@ my_bool my_init(void)
|
||||
|
||||
/* Default creation of new files */
|
||||
if ((str= getenv("UMASK")) != 0)
|
||||
my_umask= (int) (atoi_octal(str) | 0600);
|
||||
my_umask= atoi_octal(str) | 0600;
|
||||
/* Default creation of new dir's */
|
||||
if ((str= getenv("UMASK_DIR")) != 0)
|
||||
my_umask_dir= (int) (atoi_octal(str) | 0700);
|
||||
my_umask_dir= atoi_octal(str) | 0700;
|
||||
|
||||
init_glob_errs();
|
||||
|
||||
|
Reference in New Issue
Block a user