diff options
author | unknown <msvensson@pilot.mysql.com> | 2007-10-05 19:55:00 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.mysql.com> | 2007-10-05 19:55:00 +0200 |
commit | dc0256720531f36502afa1f79cbdea3f7b606c70 (patch) | |
tree | a109ab943cbbd81963ccabe0a18df25031e76988 /extra/comp_err.c | |
parent | 8ab53d5f4e9225d3d3d3509f8cd47c610406ed8e (diff) | |
download | mariadb-git-dc0256720531f36502afa1f79cbdea3f7b606c70.tar.gz |
Fixed Bug #27789 "Wrong permissions of sql/share/language directories"
extra/comp_err.c:
Override my_mkdir() umask setting. The default is 0700 which perfectly
makes sense for the server but leads to Bug #27789 when applied to comp_err
generated directories in the souce tree. Generated directories and the
files within won't be accessible to other users, sometimes including root
if on a non-local filesystem, making "sudo make install" fail.
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r-- | extra/comp_err.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c index 7cc4a0aa43f..79f591e45fb 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -167,6 +167,7 @@ int main(int argc, char *argv[]) DBUG_ENTER("main"); charsets_dir= DEFAULT_CHARSET_DIR; + my_umask_dir= 0777; if (get_options(&argc, &argv)) DBUG_RETURN(1); if (!(row_count= parse_input_file(TXTFILE, &error_head, &lang_head))) |