diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-03-25 13:10:56 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-03-25 13:11:33 +0200 |
commit | 442ef5cedfb4de0126a4af6c215f55740cf02a6d (patch) | |
tree | fb997117f95deeb42e082716c72ea76d99e6bce3 | |
parent | a71c92b33dc69bc6cbc5eae161f82a5bca27a82f (diff) |
Service command list fixup
Decode the target, no the type (and print the correct error message).
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
-rw-r--r-- | servicecmd/list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servicecmd/list.c b/servicecmd/list.c index 07153f2..73e1aae 100644 --- a/servicecmd/list.c +++ b/servicecmd/list.c @@ -60,11 +60,11 @@ static int cmd_list(int argc, char **argv) } if (argc == 2) { - i = svc_type_from_string(argv[1]); + i = svc_target_from_string(argv[1]); if (i == -1) { fprintf(stderr, "Unknown target `%s'\n", argv[1]); - tell_read_help(argv[1]); + tell_read_help(argv[0]); ret = EXIT_FAILURE; goto out; } |