mirror of
https://git.proxmox.com/git/systemd
synced 2026-02-01 23:01:32 +00:00
hostnamectl: do not choke on set-hostname with no argument
https://bugzilla.redhat.com/show_bug.cgi?id=871172
This commit is contained in:
parent
6c1703cc35
commit
f36d7992ef
@ -430,7 +430,7 @@ static int hostnamectl_main(DBusConnection *bus, int argc, char *argv[], DBusErr
|
||||
int (* const dispatch)(DBusConnection *bus, char **args, unsigned n);
|
||||
} verbs[] = {
|
||||
{ "status", LESS, 1, show_status },
|
||||
{ "set-hostname", LESS, 2, set_hostname },
|
||||
{ "set-hostname", EQUAL, 2, set_hostname },
|
||||
{ "set-icon-name", EQUAL, 2, set_icon_name },
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user