summaryrefslogtreecommitdiff
path: root/src/hostname/hostnamectl.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-10-29 20:54:26 +0100
committerKay Sievers <kay@vrfy.org>2012-10-29 20:56:02 +0100
commitf36d7992ef9588e24feaae5bb3d103ca63af71bd (patch)
treead282e04e8bbc473d6c67cae2d5ef42593598c38 /src/hostname/hostnamectl.c
parent6c1703cc35b3a5f93ad3cc813fea10cb9a636102 (diff)
hostnamectl: do not choke on set-hostname with no argument
https://bugzilla.redhat.com/show_bug.cgi?id=871172
Diffstat (limited to 'src/hostname/hostnamectl.c')
-rw-r--r--src/hostname/hostnamectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
index 1d448bd944..e7b2b49f29 100644
--- a/src/hostname/hostnamectl.c
+++ b/src/hostname/hostnamectl.c
@@ -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 },
};