[Bug 10991] New: getops error in nc if compiled without NC_SERVER
bugzilla at busybox.net
bugzilla at busybox.net
Mon May 7 08:33:28 UTC 2018
https://bugs.busybox.net/show_bug.cgi?id=10991
Bug ID: 10991
Summary: getops error in nc if compiled without NC_SERVER
Product: Busybox
Version: 1.28.x
Hardware: All
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: Networking
Assignee: unassigned at busybox.net
Reporter: frank.vosseler at microfocus.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
We have built BB without NC_SERVER, i.e. without the '-l' option enabled.
However, when we run nc (e.g. 'nc -vz google.com 80'), we get an error "nc: NO
OPT l!"
I suspect this is because the complementary options in nc_bloaty.c define the
'l' option unconditionally in line 794 by mistake:
790 getopt32(argv, "^"
791 "np:s:uvw:+"/* -w N */ IF_NC_SERVER("lk")
792 IF_NC_EXTRA("i:o:z")
793 "\0"
794 "?2:vv:ll", /* max 2 params; -v and -l are
counters */
Line 794 should define the complementary option l conditional on NC_SERVER:
"?2:vv" IF_NC_SERVER(":ll"), /* max 2 params; -v and -l are counters */
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list