Bug 1039977

Summary: mysql_config nonzero return code on usage message
Product: Red Hat Enterprise Linux 6 Reporter: Karel Volný <kvolny>
Component: mysqlAssignee: Michal Schorm <mschorm>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 6.6CC: byte, databases-maint, hhorak
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1039975 Environment:
Last Closed: 2017-04-07 19:18:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1039975    
Bug Blocks:    

Description Karel Volný 2013-12-10 13:00:29 UTC
cloning to track failure in our test for the appropriate RHEL version

+++ This bug was initially created as a clone of Bug #1039975 +++

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 2 Karel Volný 2014-12-02 10:44:29 UTC
just FTR, there are more binaries with similar problem:

`mysql_waitpid --help` returns 255 despite "--help" is valid option

`mysqladmin --help` returns 1 despite "--help" is valid option

`myisam_ftdump --help` returns 1 despite "--help" is valid option

`resolve_stack_dump --help` returns 1 despite "--help" is valid option

(should I file it as a new bug?)