The patch looks good and is straightforward.
I have just one question before approving it.
Andrei Elkin wrote:
> #At file:///home/andrei/MySQL/BZR/FIXES/next-mr-bug50316-Master_info_file-to-sss/
> based on revid:alik@stripped
> if (mi->inited)
> @@ -169,7 +168,8 @@ int init_master_info(Master_info* mi, co
> - fn_format(fname, master_info_fname, mysql_data_home, "", 4+32);
> + fn_format(mi->info_file_name, master_info_fname, mysql_data_home, "",
> + MYF(MY_UNPACK_FILENAME|MY_RETURN_REAL_PATH|MY_SAFE_PATH));
You changed also the flags in the fn_format.
Is there any impact on the change master? Can you check that?
If there is can you please improve your test case?