MySQL handler does not detect errors

Bug #340502 reported by Christian Rishøj
10
Affects Status Importance Assigned to Milestone
backupninja (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: backupninja

When listing databases, a superfluous sed hides the return status of the mysql command:

Lines 235-239 in /usr/share/backupninja/mysql:

databases=$(su $user -c "$MYSQL $defaultsfile -N -B -e 'show databases'" | sed 's/|//g;/\+----/d')
if [ $? -ne 0 ]
then
   fatal "Authentication problem, maybe user/password is wrong or mysqld is not running?"
fi

Here, the return status of the $MYSQL command is hidden by the tailing sed command.

Revision history for this message
Christian Rishøj (christian-rishoj) wrote :
description: updated
Revision history for this message
Andreas Moog (ampelbein) wrote :

This is fixed in natty.

Changed in backupninja (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.