diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-03-21 17:11:22 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-03-21 17:11:52 +0100 |
commit | ec04681c4dc30a1c52203c65ffef48c3c0e601cb (patch) | |
tree | eeb6e1312aa27dd03277f029e6981df5b4435ae6 | |
parent | a6c059203b51ad801484b125ec4e45296b3f1aea (diff) |
Make service status matching fuzzier (also allow service name match)
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
-rw-r--r-- | cmd/service/status.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |