systemctl: ignore shutdown's "-t" argument (#7459)
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Nov 2017 16:01:32 +0000 (17:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 24 Nov 2017 16:01:32 +0000 (17:01 +0100)
commitb068c6f587076fdb870b0f1ac2e10e36f1987520
tree1d3290ba3cb4ff64e8129f13952738d16b40dbad
parent5f33279244aaf12b9b2ac40648eda168fc4ecf06
systemctl: ignore shutdown's "-t" argument (#7459)

We should not only ignore "-t" itself, but also whatever is passed to
it.

This pretty much reverts the core of
a4420f7b8ed73b05ef6f31622101e7804daef69f, and adds back in the status
quo ante. What a difference a ':' can make.

This also adds a quick comment for this, so that we don't make this
mistake again.

Fixes: #7413
src/systemctl/systemctl.c