28 lines
829 B
Diff
28 lines
829 B
Diff
|
From 59f432ea6d6d441d0af7c76c37e80730c8df473a Mon Sep 17 00:00:00 2001
|
||
|
From: Lennart Poettering <lennart@poettering.net>
|
||
|
Date: Thu, 15 Nov 2012 22:47:04 +0100
|
||
|
Subject: [PATCH] hostnamectl: fix parsing of --no-ask-password
|
||
|
|
||
|
---
|
||
|
src/hostname/hostnamectl.c | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
|
||
|
index b7ae5cc..265c7ec 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;
|
||
|
|
||
|
--
|
||
|
1.7.10.4
|
||
|
|