applying fix for:
authorPaul Fox <pgf@brightstareng.com>
Wed, 20 Jul 2005 19:40:30 +0000 (19:40 -0000)
committerPaul Fox <pgf@brightstareng.com>
Wed, 20 Jul 2005 19:40:30 +0000 (19:40 -0000)
    0000263: nc cannot use -e when initiating a tcp connection
     to something else

networking/nc.c

index bf155b3b13bb3148dd3fc11d94c4dac2cbb1c489..8f641ae4f9513d01b2c5f73bc4faa13004b8413d 100644 (file)
@@ -82,13 +82,6 @@ int nc_main(int argc, char **argv)
                }
        }
 
-#ifdef CONFIG_NC_GAPING_SECURITY_HOLE
-       if (pr00gie) {
-               /* won't need stdin */
-               close(STDIN_FILENO);      
-       }
-#endif /* CONFIG_NC_GAPING_SECURITY_HOLE */
-
        if ((do_listen && optind != argc) || (!do_listen && optind + 2 != argc))
                bb_show_usage();