MySQL handler does not detect errors
Bug #340502 reported by
Christian Rishøj
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/
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.
To post a comment you must log in.
This is fixed in natty.