Make service status matching fuzzier (also allow service name match)

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-21 17:11:22 +01:00
parent a6c059203b
commit ec04681c4d
1 changed files with 5 additions and 0 deletions

View File

@ -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;