Systemctl accepted anything as the argument for -t, and simply said '0 units found'. It is better to catch this user error early. --- A small thing thing I noticed today. src/systemctl/systemctl.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 66f4113..d353071 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4325,6 +4325,19 @@ static int runlevel_help(void) { return 0; } +static int arg_type_ok(const char *type) { + + static const char *types[] = {"service", "socket", "device", "mount", + "swap", "automount", "target", "path", + "timer", "snapshot"}; + unsigned i; + + for (i=0; i