chiark / gitweb /
hostnamectl: fix parsing of --no-ask-password
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Nov 2012 21:47:04 +0000 (22:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 15 Nov 2012 22:07:25 +0000 (23:07 +0100)
src/hostname/hostnamectl.c

index b7ae5cc..265c7ec 100644 (file)
@@ -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;