summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2018-05-24 16:38:40 +0200
committerDenys Vlasenko2018-05-24 16:38:40 +0200
commit3f91e662f21083d4febf74fa89ccc50e406cbf6c (patch)
treea2210dc0cd6c1c71e69f313c701dc632008e7dd5
parentccb8e4bc4fb74701d0d323d61e9359d8597a4272 (diff)
downloadbusybox-3f91e662f21083d4febf74fa89ccc50e406cbf6c.zip
busybox-3f91e662f21083d4febf74fa89ccc50e406cbf6c.tar.gz
nc: fix the !NC_SERVER configuration
The symptom is the "nc: NO OPT l!" message. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/nc_bloaty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index 6409864..42c84de 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -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)