Bug 1039975 - mysql_config nonzero return code on usage message
Summary: mysql_config nonzero return code on usage message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mariadb
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Dorňák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1039976 1039977 1039978
TreeView+ depends on / blocked
 
Reported: 2013-12-10 12:57 UTC by Karel Volný
Modified: 2016-06-15 10:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1039976 1039977 1039978 (view as bug list)
Environment:
Last Closed: 2016-06-15 10:56:22 UTC
Type: Bug


Attachments (Terms of Use)

Description Karel Volný 2013-12-10 12:57:44 UTC
Description of problem:
Trying to run mysql_config without parameters, it returns nonzero exit code. But this is not an error, the application should return zero.

Version-Release number of selected component (if applicable):
mariadb-5.5.33a-1.fc19

How reproducible:
always

Steps to Reproduce:
1. mysql_config >/dev/null; echo $?

Actual results:
1

Expected results:
0

Additional info:
from the manpage:

"If you invoke mysql_config with no options, it displays a list of all options that it supports, and their values:"

so, invoking without parameters is correct usage ...

note also that it'd be nice to support the "--help" option, but that's more RFE material than a bug

Comment 1 Honza Horak 2013-12-12 15:53:41 UTC
Upstream bug report: https://mariadb.atlassian.net/browse/MDEV-5436
Let's see what they think about such behaviour.

Comment 2 Honza Horak 2014-02-21 15:15:47 UTC
Upstream fix:
http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/4077

Comment 3 Jaroslav Reznik 2015-03-03 16:57:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 4 Fedora Admin XMLRPC Client 2015-08-11 10:03:30 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Honza Horak 2016-06-15 10:56:22 UTC
According to upstream, it's been fixed in 5.5.36, so closing.


Note You need to log in before you can comment on or make changes to this bug.