summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-11-15 22:47:04 +0100
committerLennart Poettering <lennart@poettering.net>2012-11-15 23:07:25 +0100
commit59f432ea6d6d441d0af7c76c37e80730c8df473a (patch)
tree122b443e13cd217a0144492a904aea52735348d7 /src
parent8e6054f732b4bc980d3af3e1386ca94b3a602eb8 (diff)
hostnamectl: fix parsing of --no-ask-password
Diffstat (limited to 'src')
-rw-r--r--src/hostname/hostnamectl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
index b7ae5ccc6c..265c7ecbfe 100644
--- a/src/hostname/hostnamectl.c
+++ b/src/hostname/hostnamectl.c
@@ -403,6 +403,10 @@ static int parse_argv(int argc, char *argv[]) {
arg_set_static = true;
break;
+ case ARG_NO_ASK_PASSWORD:
+ arg_ask_password = false;
+ break;
+
case '?':
return -EINVAL;