nc: fix the !NC_SERVER configuration

The symptom is the "nc: NO OPT l!" message.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-05-24 16:38:40 +02:00
parent ccb8e4bc4f
commit 3f91e662f2

View 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)