From 7dc7f402a7d8237d053376dc783d6fe9599ab901 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 6 May 2005 05:00:34 +0000 Subject: make the exec (-e) an optional feature of netcat --- include/usage.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index d731957f1..1ef79df61 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1824,6 +1824,11 @@ " or\n" \ "$ nameif -c /etc/my_mactab_file\n" \ +#ifdef CONFIG_NC_GAPING_SECURITY_HOLE +# define USAGE_NC_EXEC(a) a +#else +# define USAGE_NC_EXEC(a) +#endif #define nc_trivial_usage \ "[OPTIONS] [IP] [port]" #define nc_full_usage \ @@ -1832,8 +1837,10 @@ "\t-l\t\tlisten mode, for inbound connects\n" \ "\t-p PORT\t\tlocal port number\n" \ "\t-i SECS\t\tdelay interval for lines sent\n" \ - "\t-w SECS\t\ttimeout for connects and final net reads\n" \ - "\t-e PROG\t\tprogram to exec after connect (dangerous!)" + USAGE_NC_EXEC( \ + "\t-e PROG\t\tprogram to exec after connect (dangerous!)\n" \ + ) \ + "\t-w SECS\t\ttimeout for connects and final net reads" #define nc_example_usage \ "$ nc foobar.somedomain.com 25\n" \ "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \ -- cgit v1.2.3