[BusyBox] bug#1300: nc -e doesn't work - patch attached
Christophe Massiot
cmassiot at freebox.fr
Fri Feb 7 15:53:38 UTC 2003
Package: busybox
Version: 0.60.5
Severity: normal
The -e switch doesn't work, for instance : nc -e /bin/sh
Here is a patch :
diff -ru busybox.old/nc.c busybox/nc.c
--- busybox.old/nc.c 2003-02-07 19:16:45.000000000 +0100
+++ busybox/nc.c 2003-02-07 19:17:36.000000000 +0100
@@ -55,7 +55,11 @@
fd_set readfds, testfds;
+#ifdef GAPING_SECURITY_HOLE
+ while ((opt = getopt(argc, argv, "lp:e:")) > 0) {
+#else
while ((opt = getopt(argc, argv, "lp:")) > 0) {
+#endif
switch (opt) {
case 'l':
do_listen++;
--
Christophe Massiot Freebox S.A.
Tel: +33 1 49 04 48 95 124, boulevard de Verdun
Fax: +33 1 49 04 48 71 F-92400 Courbevoie
More information about the busybox
mailing list