]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machinectl: do not truncate addresses when --full is specified 14538/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Jan 2020 10:17:26 +0000 (19:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Jan 2020 10:19:15 +0000 (19:19 +0900)
man/machinectl.xml
src/machine/machinectl.c

index bfabee346eb80094e955073af5965000148996df..5d7a14d2c74a144bec5f1ef4234660ede081ac5f 100644 (file)
         <term><option>-l</option></term>
         <term><option>--full</option></term>
 
-        <listitem><para>Do not ellipsize process tree entries or table.</para>
+        <listitem><para>Do not ellipsize process tree entries or table. This implies
+        <option>--max-addresses=full</option>.</para>
         </listitem>
       </varlistentry>
 
index 2c2b13b86f0eae68df279b8359643c557b590dcc..4b4437f91d3bd9e72a3ef587cd0142828e271f44 100644 (file)
@@ -341,7 +341,7 @@ static int list_machines(int argc, char *argv[], void *userdata) {
                                 0,
                                 "",
                                 " ",
-                                arg_addrs,
+                                arg_full ? ALL_IP_ADDRESSES : arg_addrs,
                                 &addresses);
 
                 r = table_add_many(table,