aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/netcat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/toys/other/netcat.c b/toys/other/netcat.c
index 3c6f630b..485dda13 100644
--- a/toys/other/netcat.c
+++ b/toys/other/netcat.c
@@ -166,7 +166,6 @@ void netcat_main(void)
if (!child && toys.optc) {
int fd = pollfds[0].fd;
- if (!temp) close(sockfd);
dup2(fd, 0);
dup2(fd, 1);
if (toys.optflags&FLAG_L) dup2(fd, 2);