~maria-captains/maria/5.2

Viewing all changes in revision 2502.1195.11.

Bug#13741677 MYSQL_SECURE_INSTALLATION DOES NOT
             WORK + SAVES ROOT PASSWORD TO DISK!

The secure installation scripts connect to the
server by storing the password in a temporary
option file. Now, if the script gets killed or
fails for some reason, the removal of the option
file may not take place.

This patch introduces following enhancements :
* (.sh) Made sure that cleanup happens at every
  call to 'exit 1'. This is performed implicitly
  by END{} in pl.in.
* (.pl.in) Added a warning in case unlink fails
  to delete the option/query files.
* (.sh/.pl.in) Added more signals to the signal
  handler list. SIG# 1, 3, 6, 15

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: