diff options
author | Mike Frysinger | 2005-05-06 05:00:34 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-05-06 05:00:34 +0000 |
commit | 7dc7f402a7d8237d053376dc783d6fe9599ab901 (patch) | |
tree | 527c4d23922e3ad159e06623de1b2afcf04a4b0f /include | |
parent | 60a5c38a4b7e223dda52baf943b8edac7eeccb59 (diff) | |
download | busybox-7dc7f402a7d8237d053376dc783d6fe9599ab901.zip busybox-7dc7f402a7d8237d053376dc783d6fe9599ab901.tar.gz |
make the exec (-e) an optional feature of netcat
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index d731957..1ef79df 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" \ |