script doesn't die on dbh->connect() failure
Consider this code from mylvmbackup.pl:192
my $dbh= DBI->connect(
or log_msg ($DBI::errstr, LOG_ERR) && die $DBI::errstr;
On DBI->connect() failure, the log_msg() runs, but the die() does not. Code execution continues on to the next line which is run_hook(
Proposed fix. Verified correct behavior.
my $dbh = DBI->connect(
log_msg ($DBI::errstr, LOG_ERR);