nc: fix the !NC_SERVER configuration
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 24 May 2018 14:38:40 +0000 (16:38 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 24 May 2018 14:38:40 +0000 (16:38 +0200)
The symptom is the "nc: NO OPT l!" message.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/nc_bloaty.c

index 64098648aae6a86abcddc970aae788bba8c6c389..42c84de45e75a1c29f83e392776a6fc97149f592 100644 (file)
@@ -791,7 +791,7 @@ int nc_main(int argc UNUSED_PARAM, char **argv)
                "np:s:uvw:+"/* -w N */ IF_NC_SERVER("lk")
                IF_NC_EXTRA("i:o:z")
                        "\0"
-                       "?2:vv:ll", /* max 2 params; -v and -l are counters */
+                       "?2:vv"IF_NC_SERVER(":ll"), /* max 2 params; -v and -l are counters */
                &str_p, &str_s, &o_wait
                IF_NC_EXTRA(, &str_i, &str_o)
                        , &o_verbose IF_NC_SERVER(, &cnt_l)