check_mysql: Allow sockets to be specified to -H

The help text says that -H accepts a "unix socket (must be an absolute
path)". Now that actually corresponds to reality.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
This commit is contained in:
Robin Sonefors 2013-05-10 17:21:34 +02:00 committed by Jacob Hansen
parent 97bb142b14
commit 2bc4cc99d2

View file

@ -379,6 +379,9 @@ process_arguments (int argc, char **argv)
if (is_host (optarg)) {
db_host = optarg;
}
else if (*optarg == '/') {
db_socket = optarg;
}
else {
usage2 (_("Invalid hostname/address"), optarg);
}