mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
A fix (bug #6551: UMASK_DIR & UMASK not taken into account (mysqld.cc my_init.c inconsistency)).
my_umask and my_umask_dir initialization has been moved to the my_init() func. mysys/my_init.c: A fix (bug #6551: UMASK_DIR & UMASK not taken into account (mysqld.cc my_init.c inconsistency)) sql/mysqld.cc: A fix (bug #6551: UMASK_DIR & UMASK not taken into account (mysqld.cc my_init.c inconsistency))
This commit is contained in:
parent
02d8fa2952
commit
d2a3420dd3
2 changed files with 2 additions and 2 deletions
|
|
@ -75,6 +75,8 @@ my_bool my_init(void)
|
|||
return 0;
|
||||
my_init_done=1;
|
||||
mysys_usage_id++;
|
||||
my_umask= 0660; /* Default umask for new files */
|
||||
my_umask_dir= 0700; /* Default umask for new directories */
|
||||
#if defined(THREAD) && defined(SAFE_MUTEX)
|
||||
safe_mutex_global_init(); /* Must be called early */
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2305,8 +2305,6 @@ bool init_global_datetime_format(timestamp_type format_type,
|
|||
static int init_common_variables(const char *conf_file_name, int argc,
|
||||
char **argv, const char **groups)
|
||||
{
|
||||
my_umask=0660; // Default umask for new files
|
||||
my_umask_dir=0700; // Default umask for new directories
|
||||
umask(((~my_umask) & 0666));
|
||||
tzset(); // Set tzname
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue