Re: wondering about mysql_install_db in mysql-5.6.8-rc

Rich Prohaska <[email protected]> Tue, 13 Nov 2012 17:37:18 -0500
Newsgroups gmane.comp.db.mysql.devel
Message-ID <CAL5sXW7ujb0hrrAau_uCVG-pbn14hgXSBH_TNaGO0CcgrgU_Aw@mail.gmail.com>
I am not a perl expert, but this page says that perl's chown expects
numeric user id's.  http://perldoc.perl.org/functions/chown.html

On Tue, Nov 13, 2012 at 5:06 PM, Bjorn Munch <[email protected]> wrote:
> On 13/11 15.43, Rich Prohaska wrote:
>> the mysql_install_db perl script does not chown the data directory
>> correctly in 5.6.8-rc.
>
> Unfortunately it doesn't (when using the --user option), as I have
> also discovered, and I have filed a bug report.
>
>> this line in the script is wrong:
>>
>>   chown($opt->{user}, $dir) if -w "/" and !$opt->{user};
>>
>> since chown expects a number not a name for the user id, and i am not
>> sure that conditional is correct.
>
> I'm not sure what you mean by number, but the condition is indeed not
> correct and we shall have this fixed.
>
> We're sorry about this!
>
> --
> Bjorn Munch   [email protected]
> MySQL Release Engineering
> Trondheim, Norway
>
> --
> MySQL Internals Mailing List
> For list archives: http://lists.mysql.com/internals
> To unsubscribe:    http://lists.mysql.com/internals
>

-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/internals