From ec04681c4dc30a1c52203c65ffef48c3c0e601cb Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 21 Mar 2019 17:11:22 +0100 Subject: [PATCH] Make service status matching fuzzier (also allow service name match) Signed-off-by: David Oberhollenzer --- cmd/service/status.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/service/status.c b/cmd/service/status.c index 38c1477..be5c930 100644 --- a/cmd/service/status.c +++ b/cmd/service/status.c @@ -76,6 +76,11 @@ static int cmd_status(int argc, char **argv) found = false; for (i = optind; i < argc; ++i) { + if (fnmatch(argv[i], + resp.service_name, 0) == 0) { + found = true; + break; + } if (fnmatch(argv[i], resp.filename, 0) == 0) { found = true; break;