Commit 0661c732 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6352 [PATCH] mysql_config prints usage to stdout and exit with 0 if run with unknow option

parent 91c47e6f
...@@ -176,10 +176,10 @@ Options: ...@@ -176,10 +176,10 @@ Options:
pkglibdir [$pkglibdir] pkglibdir [$pkglibdir]
plugindir [$plugindir] plugindir [$plugindir]
EOF EOF
exit 0 exit $1
} }
if test $# -le 0; then usage; fi if test $# -le 0; then usage 0 ; fi
while test $# -gt 0; do while test $# -gt 0; do
case $1 in case $1 in
...@@ -198,10 +198,10 @@ while test $# -gt 0; do ...@@ -198,10 +198,10 @@ while test $# -gt 0; do
pkgincludedir) echo "$pkgincludedir" ;; pkgincludedir) echo "$pkgincludedir" ;;
pkglibdir) echo "$pkglibdir" ;; pkglibdir) echo "$pkglibdir" ;;
plugindir) echo "$plugindir" ;; plugindir) echo "$plugindir" ;;
*) usage ;; *) usage 1 >&2 ;;
esac esac
;; ;;
*) usage ;; *) usage 1 >&2 ;;
esac esac
shift shift
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment